From 74116729fc87fe484311f88b37a69219ee31cdad Mon Sep 17 00:00:00 2001 From: Leander Date: Mon, 10 Apr 2017 10:21:18 +0200 Subject: [PATCH] T201704101021 --- highscores.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highscores.php b/highscores.php index e5bfbc6..fb00f73 100644 --- a/highscores.php +++ b/highscores.php @@ -30,7 +30,7 @@ if($uid == '') { array($uid, $cid))['data'][0]['score']; $place = $db->query( 'SELECT COUNT (*) FROM "Highscores" - WHERE "Users_ID" = $1 AND "Categories_ID" = $2 AND "score" > $3', + WHERE "Categories_ID" = $2 AND "score" > $3', array($uid, $cid, $score))['data'][0]['count'] + 1; print_r(pg_last_error()); print_r(array('score', $score, 'place', $place));