From 8990954ab900afc3e0a2adaf2ac6a87a483c2a17 Mon Sep 17 00:00:00 2001 From: Leander Date: Mon, 27 Mar 2017 15:03:52 +0200 Subject: [PATCH] T1703271503 --- start.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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