diff --git a/start.php b/start.php index 62360fe..faf54a5 100644 --- a/start.php +++ b/start.php @@ -16,7 +16,7 @@ $database = new Database(); $questions_count = $database->query('SELECT COUNT(*) FROM "Questions"')['data'][0]['count']; - function start_game($length) { + function create_game($length) { print 'Ich bin die Funktion.'; } @@ -30,7 +30,7 @@ $database->query('DELETE FROM "Games" WHERE "ID" = $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); print $response;