From 3207c455ebbf5f736a2b3215f95f78a1e1688ea7 Mon Sep 17 00:00:00 2001 From: Leander Date: Mon, 10 Apr 2017 10:17:32 +0200 Subject: [PATCH] T201704101017 --- highscores.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/highscores.php b/highscores.php index 176b469..f6b2740 100644 --- a/highscores.php +++ b/highscores.php @@ -32,6 +32,8 @@ if($uid == '') { 'SELECT COUNT (*) FROM "Highscores" WHERE "Users_ID" = $1 AND "Categories_ID" = $2 AND "score" > $3', array($uid, $cid, $score))['data'][0]['count'] + 1; + print_r(pg_last_error); + print_r('score', $score, 'place', $place); $cat_scores[] = array('id' => $cid, 'name' => $cat, 'score' => $score, 'place' => $place); } $data = array('score' => $score_all, 'place' => $place_all, 'all' => $all, 'categories' => $cat_scores);