This commit is contained in:
2019-11-02 22:10:36 +01:00
parent 4fe9175641
commit ae39fda660
8 changed files with 442 additions and 269 deletions

View File

@ -6,8 +6,8 @@
} catch (Exception $e) {
die('Erreur : ' . $e->getMessage());
}
$entryScore = (int) $db->query('SELECT score FROM `leaderboard` ORDER BY score DESC LIMIT 9, 1;')->fetch()['score'];
$score = (int) $_POST['score'];
$entryScore = (int) $db->query('SELECT score FROM `leaderboard` ORDER BY score DESC LIMIT 19, 1;')->fetch()['score'];
if ($score > $entryScore)
echo "true";
else