T2017040812279

This commit is contained in:
Leander
2017-04-06 12:29:53 +02:00
parent f40a6e35b3
commit 58b9d9473d
3 changed files with 5 additions and 2 deletions

View File

@@ -23,7 +23,8 @@ if($uid == '') {
$error = 15101;
} else if($db->query('SELECT EXISTS (SELECT 1 FROM "Users" WHERE "ID" = $1)', array($uid))
['data']['0']['exists'] == 'f') {
$error = 15102;
}
$score = $db->query('SELECT "highscore" FROM "Users" WHERE "ID" = $1', array($uid))['data'][0]['highscore'];
$all = $db->query('SELECT COUNT (*) FROM "Users"')['data']['0']['count'];
echo 'Score: '.$score;