T201704051022
This commit is contained in:
@@ -41,7 +41,7 @@ if($uid == '') {
|
|||||||
['data'][0]['current_score'];
|
['data'][0]['current_score'];
|
||||||
$new_points = $old_points + $score;
|
$new_points = $old_points + $score;
|
||||||
$db->query('UPDATE "Games" SET "current_score" = $1 WHERE "ID" = $2', array($new_points, $uid));
|
$db->query('UPDATE "Games" SET "current_score" = $1 WHERE "ID" = $2', array($new_points, $uid));
|
||||||
$results = array('correct' => $correct, 'correctPos' => $correct_answer, 'score' => $score);
|
$results = array('correct' => $correct, 'correctPos' => $correct_answer, 'score' => $score, 'total' => $new_points);
|
||||||
$old_time = $db->query('SELECT "total_time" FROM "Games" WHERE "ID" = $1', array($uid))
|
$old_time = $db->query('SELECT "total_time" FROM "Games" WHERE "ID" = $1', array($uid))
|
||||||
['data'][0]['total_time'];
|
['data'][0]['total_time'];
|
||||||
$new_time = $old_time + $time;
|
$new_time = $old_time + $time;
|
||||||
|
|||||||
11
highscores.php
Normal file
11
highscores.php
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Created by PhpStorm.
|
||||||
|
* User: leanderschmedemann
|
||||||
|
* Date: 05/04/2017
|
||||||
|
* Time: 10:18
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user