From a57cb0d59725a401a1ee3339ec6557ea592a8290 Mon Sep 17 00:00:00 2001 From: Leander Date: Mon, 3 Apr 2017 10:36:32 +0200 Subject: [PATCH] T201704031034 --- start.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/start.php b/start.php index 6e80c36..7bf2093 100644 --- a/start.php +++ b/start.php @@ -14,7 +14,7 @@ $length = isset($_GET['length']) ? $_GET['length'] : ''; $length = (($length === '0') || ($length && gettype(+$length) == 'integer')) ? +$_GET['length'] : 10; $db = new Database(); - $questions_count = $db->query('SELECT COUNT(*) FROM "Questions"')/*['data'][0]['count']*/; + $questions_count = $db->query('SELECT COUNT(*) FROM "Questions"')['data'][0]['count']; // Return $count random, non repeating numbers in range from $min to $max. function random_numbers($min, $max, $count){ @@ -23,7 +23,6 @@ return array_slice($numbers, 0, $count-1); } - print_r(array($uid)); print_r($questions_count); if($uid == '') {