diff --git a/start.php b/start.php index 2a5a69e..e546429 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){