T201704081315

This commit is contained in:
Leander
2017-04-06 13:15:27 +02:00
parent f6b5e5f88a
commit 9af8a4e0e7

View File

@@ -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) {