Jump to content


CavaleiroNegro

Member Since 13/11/2009
Offline Last Active 21/11/2009, 22:28
-----

Topics I've Started

[Resolvido] Mostrar Horas E Dias Ao Invez De Milisegundos

13/11/2009, 10:20

Olá galera,gostaria de saber como seria a forma de mudar o a leitura de tempo online desse script :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title></title>
	</head>
	<body>
		<?php
//---------CONFIGS---------//
$title="";  // Page Title Here
$type="1"; //Type 1 
$server="localhost"; // MySQL IP
$user="root"; //MySQL Username
$password=""; //MySQL Password
$database="l2jdbtestescripts"; //MySQL Database
$top="100"; 
//-----END OF CONFIGS-----//


if ($title) {
print("<head><title>$title</title></head>");
}
else {
print("<head><title>No Page Title</title></head>");
}
mysql_connect("$server", "$user", "$password") or die(mysql_error());
mysql_select_db("$database") or die(mysql_error());

if($type == '1'){
$result = mysql_query("SELECT char_name,onlinetime FROM characters where onlinetime>0 and accesslevel=0 order by onlinetime desc")
or die(mysql_error());
echo "<center><h3>Top $top Online Time Players</h3></center><table border=10 align=center><tr> <th>Character</th> <th>Top Time</th> </tr>";
$sum1=0;
while($row = mysql_fetch_array( $result )) {
		$name = $row['char_name'];
		$onlinetime = $row['onlinetime'];
		if ($sum1<$top) {
		echo "<tr><td align=center>$name</td><td align=center>$onlinetime</td></tr>";
		$sum1++;
		}
	}
}

else {
echo "<center>Please config the variable $type. Make it <b>1</b> for Top Status</center>";
}
?>
	</body>
</html>

Nesse caso ele mostra o tempo online em milisegundos eu queria que mostra-se DIAS e HORAS e MINUTOS online se possivel alguém me ajudar nisso...


Posted Image

Toda ajuda é bem vinda Obrigado.

Poblemas Na Visualização Do Website No Firefox

13/11/2009, 09:02

Olá pessoal,sou novo aqui no fórum estou aqui para tirar uma duvida minha sobre a exibição de meu site em navegador Firefox

Meu site no Internet Explorer funciona normalmente Google Chrome tb é visualizado certinho,ai tem umas imagens que incluir pelo .css e no index.php eu inclui os links nas imagens,nos outros navegadores funfa normal chega no firefox as imagens da parte esquerda do meu site aparece os links não.

E na parte debaixo que tem outras tres imagens com links nem aparecem...

Alguém teria mais ou menos uma idéia do que poderia estar aconteceno ? ou até mesmo informar uma correção


[codebox] <div align="center"><a href="http://www.gamesites...n.php?id=16949" target="iframe"><img src="\imagens\boxes\boxvote.jpg" width="194" height="192" border="0"></a>
<a href="phx.php" target="iframe"><img src="\imagens\boxes\boxphx.jpg" width="194" height="192" border="0"></a>
<a href="seg.php" target="iframe"><img src="\imagens\boxes\boxseg.jpg" width="194" height="192" border="0"></a>[/codebox]

Nessa parte não aparece imagens e nem os links...
Agora nessa aparece as imagens so que link no firefox não aparece :

[codebox]<div id="bloco-direito_um"><a href="contato.php" target="iframe"><img src="\imagens\suporte.jpg" width="284" height="74" border="0"></a><!--Incio do bloco-direito_um-->
</div><!--Fim do bloco-direito_um-->
<div id="bloco-direito_dois"><a href="reg.php" target="iframe"><img src="\imagens\cadastro.png" width="284" height="74" border="0"></a><!--Incio do bloco-direito_dois-->
</div><!--Fim do bloco-direito_dois-->
<div id="bloco-direito_tres"><a href="http://www.orkut.com...y?cmm=95594102" target="iframe"><img src="\imagens\orkut.jpg" width="284" height="74" border="0"></a><!--Incio do bloco-direito_tres-->
</div><!--Fim do bloco-direito_tres-->
<div id="bloco-direito_quatro"><a href="http://www.gamesites...n.php?id=16949" target="iframe"><img src="\imagens\top200.jpg" width="284" height="74" border="0"></a><!--Incio do bloco-direito_quatro-->
</div><!--Fim do bloco-direito_quatro-->[/codebox]

Toda ajuda é bem vinda obrigado...

IPB Skin By Virteq