T1703311327
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user