From e4c77e7b9666b98bea8a89dcb9b5f9d2e3c52dda Mon Sep 17 00:00:00 2001 From: Leander Date: Mon, 27 Mar 2017 15:07:01 +0200 Subject: [PATCH] T1703271506 --- start.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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