T201704101022

This commit is contained in:
Leander
2017-04-10 10:22:24 +02:00
parent 74116729fc
commit bec4291cd7

View File

@@ -30,8 +30,8 @@ if($uid == '') {
array($uid, $cid))['data'][0]['score'];
$place = $db->query(
'SELECT COUNT (*) FROM "Highscores"
WHERE "Categories_ID" = $2 AND "score" > $3',
array($uid, $cid, $score))['data'][0]['count'] + 1;
WHERE "Categories_ID" = $1 AND "score" > $2',
array($cid, $score))['data'][0]['count'] + 1;
print_r(pg_last_error());
print_r(array('score', $score, 'place', $place));
$cat_scores[] = array('id' => $cid, 'name' => $cat, 'score' => $score, 'place' => $place);