High Scores
'; $q = "select * from scores where game = '$game_id' order by score desc limit 20"; $r = mysqli_query($dbc, $q); echo '
'; echo ''; $rank = 0; while($row = mysqli_fetch_array($r)) { $rank ++; echo ''; echo ''; echo ''; //score echo ''; echo ''; } echo '
Rank User Name Score
' . $rank . ''; $q2 = "select user_name from users where user_id='". $row['user_id'] . "' limit 1"; $r2 = mysqli_query($dbc, $q2); while($row2 = mysqli_fetch_array($r2)) echo $row2['user_name']; echo '' . $row['score'] . '
';