$title |
|
$title
$description
Times played: $timesplayed
|
|
Overall High Scores |
| # |
Member |
Score |
";
$namecheck = $VAR[4];
if($isrverse == 1){
$sql="SELECT * FROM `arcade_highscores` WHERE `gamename` = '$gameid' ORDER BY `score` LIMIT 100";
}
else{
$sql="SELECT * FROM `arcade_highscores` WHERE `gamename` = '$gameid' ORDER BY `score` DESC LIMIT 100";
}
$result=mysql_query($sql);
for($i = 0; $i < 100; $i++) {
$row = mysql_fetch_array($result);
$username = $row["username"];
$score = $row["score"];
$rank = $i + 1;
echo "
| $rank. |
";
if ($username == $namecheck){
echo "
";
}
echo "
$username
";
if ($username == $namecheck){
echo "
";
}
echo "
|
$score |
";
}
echo"
|
Your High Scores |
| # |
Score |
";
if($isreverse == 1){
$sql="SELECT * FROM `arcade_highscores` WHERE `gamename` = '$gameid' AND `username` = '$VAR[4]' ORDER BY `score` LIMIT 100";
}
else{
$sql="SELECT * FROM `arcade_highscores` WHERE `gamename` = '$gameid' AND `username` = '$VAR[4]' ORDER BY `score` DESC LIMIT 100";
}
$result=mysql_query($sql);
$rescheck = mysql_num_rows($result);
for($i = 0; $i < 100; $i++) {
$row = mysql_fetch_array($result);
$score = $row["score"];
$rank = $i + 1;
echo "
| $rank. |
$score |
";
}
echo"
|