diff --git a/start.php b/start.php index b996f9b..08052bf 100644 --- a/start.php +++ b/start.php @@ -11,7 +11,7 @@ $length = ($_GET['length'] && gettype(+$_GET['length']) == 'integer') ? +$_GET['length'] : 10; $database = new Database(); - $questions_count = $database->query('SELECT COUNT(*) FROM "Questions"')['data']['count']; + $questions_count = $database->query('SELECT COUNT(*) FROM "Questions"')['data']; var_dump($questions_count); print_r($questions_count);