Creating your own Leaderboard / Highscores Easy and Free (PHP & MySQL) [UPDATED 2020]

You're viewing a single comment in a conversation. View all the comments
  • 1 Comments

  • Order by
  • (Continued...)

    Changes in getrank.php:

    1)

    $sql = "SELECT COUNT(*) AS rank FROM scores WHERE score > " . $_GET['score'] . " GROUP BY name";

    2)

    In the while loop remove the "echo part". Outside of the loop, print i:

    echo ($i + 1);