diff --git a/highscores.php b/highscores.php index ce1a119..176b469 100644 --- a/highscores.php +++ b/highscores.php @@ -20,7 +20,7 @@ if($uid == '') { } else { $score_all = $db->query('SELECT "highscore" FROM "Users" WHERE "ID" = $1', array($uid))['data'][0]['highscore']; $all = $db->query('SELECT COUNT (*) FROM "Users"')['data'][0]['count']; - $place_all = $db->query('SELECT COUNT (*) FROM "Users" WHERE "highscore" > $1', array($score))['data'][0]['count'] + 1; + $place_all = $db->query('SELECT COUNT (*) FROM "Users" WHERE "highscore" > $1', array($score_all))['data'][0]['count'] + 1; //get categories highscores $categories = $db->query('SELECT "ID", "name" from "Categories"')['data']; foreach($categories as $category) {