T201704041111

This commit is contained in:
Leander
2017-04-04 11:11:35 +02:00
parent 534d58119e
commit a5cdfc9066

View File

@@ -25,6 +25,7 @@
$correct_answer = $db->query('SELECT "current_right_answer" FROM "Games" WHERE "ID" = $1', array($uid))
['data'][0]['current_right_answer'];
print_r(pg_last_error());
$correct = $correct_answer == $chosen_answer ? true : false;
$score = $correct_answer == $chosen_answer ? calculate_points($time) : 0;
if($uid == '') {