.";
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
server name | address | info | last update |
$i. ".trim($dat["gamename"]). " | " . $ip.':'. $port . " | " . trim($dat["info"]) . " | ". $mydate . " | \n"; $i++; } $data.="