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