."; for($i=1;$i<=($count/100)+1;$i++) { if($p!=$i) $pagelinks .=": $i :"; else $pagelinks .=": $i :"; } $pagelinks.="."; //ORDER BY $sort $sql = mysql_query("SELECT address, port, info, timestamp FROM serverlist WHERE game='$gi' ORDER BY $sort LIMIT " . ($p-1)*100 . ', 100'); $data = "
$pagelinks
\n"; $data .= "\n"; $i=($p-1)*100+1; while ($dat = mysql_fetch_array($sql)) { //012345678901234567890 //YYYY-MM-DD HH:SS:mmhh //2005-08-21 18:13:5121 if ($i%2==0) $style="b1"; else $style="b2"; $t = trim($dat["timestamp"]); $mydate = substr($t,11,8)."   " . substr($t,8,2).".".substr($t,5,2)."." . substr($t,0,4); $ip = trim($dat["address"]); $port = trim($dat["port"]); $data .= "\n"; $i++; } $data.="
server nameaddressinfolast update
$i. ".trim($dat["gamename"]). "" . $ip.':'. $port . "" . trim($dat["info"]) . "". $mydate . "

$pagelinks
\n"; include("disconnect.php"); // Header("Content-Length: " . strlen($data)); echo $data; ?>