T201704031034
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
$length = isset($_GET['length']) ? $_GET['length'] : '';
|
$length = isset($_GET['length']) ? $_GET['length'] : '';
|
||||||
$length = (($length === '0') || ($length && gettype(+$length) == 'integer')) ? +$_GET['length'] : 10;
|
$length = (($length === '0') || ($length && gettype(+$length) == 'integer')) ? +$_GET['length'] : 10;
|
||||||
$db = new Database();
|
$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.
|
// Return $count random, non repeating numbers in range from $min to $max.
|
||||||
function random_numbers($min, $max, $count){
|
function random_numbers($min, $max, $count){
|
||||||
@@ -23,7 +23,6 @@
|
|||||||
return array_slice($numbers, 0, $count-1);
|
return array_slice($numbers, 0, $count-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
print_r(array($uid));
|
|
||||||
print_r($questions_count);
|
print_r($questions_count);
|
||||||
|
|
||||||
if($uid == '') {
|
if($uid == '') {
|
||||||
|
|||||||
Reference in New Issue
Block a user