diff --git a/start.php b/start.php index a2c91a4..8193e9f 100644 --- a/start.php +++ b/start.php @@ -11,8 +11,6 @@ $length = ($_GET['length'] && gettype(+$_GET['length']) == 'integer') ? +$_GET['length'] : 10; $database = new Database(); - $questions_count = $database->query('SELECT COUNT(*) FROM "Questions"')['data'][0][count]; - var_dump($questions_count); - print_r($questions_count); + $questions_count = $database->query('SELECT COUNT(*) FROM "Questions"')['data'][0]['count']; echo($questions_count); ?> \ No newline at end of file