T1703311327

This commit is contained in:
Leander
2017-03-31 13:27:27 +02:00
parent 1f9fc9e692
commit c0add46faa

View File

@@ -16,7 +16,7 @@
$database = new Database(); $database = new Database();
$questions_count = $database->query('SELECT COUNT(*) FROM "Questions"')['data'][0]['count']; $questions_count = $database->query('SELECT COUNT(*) FROM "Questions"')['data'][0]['count'];
function start_game($length) { function create_game($length) {
print 'Ich bin die Funktion.'; print 'Ich bin die Funktion.';
} }
@@ -30,7 +30,7 @@
$database->query('DELETE FROM "Games" WHERE "ID" = $1', array($uid)); $database->query('DELETE FROM "Games" WHERE "ID" = $1', array($uid));
} }
$database->query('INSERT INTO "Games" ("ID") VALUES ($1)', array($uid)); $database->query('INSERT INTO "Games" ("ID") VALUES ($1)', array($uid));
$this->create_game($length); create_game($length);
} }
$response = Database::create_response($data, $error, $values); $response = Database::create_response($data, $error, $values);
print $response; print $response;