diff --git a/start.php b/start.php index 08052bf..a2c91a4 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'][0][count]; var_dump($questions_count); print_r($questions_count); - + echo($questions_count); ?> \ No newline at end of file