User\'s Personal Records
';
$q = "select score, users.user_name username from scores inner join users on users.user_id=scores.user_id where scores.user_id='" . $_SESSION['user_id']
. "' and game='$game_id' order by score desc limit 20";
$r = $db->query($q);
echo '';
echo '
User Name |
Score |
';
while($row = $r->fetchArray())
{
echo '';
echo '' . $row['username'] . ' | ';
echo '' . $row['score'] . ' |
';
}
echo '
';
}