T1703271515
This commit is contained in:
11
start.php
11
start.php
@@ -7,10 +7,17 @@
|
||||
*/
|
||||
|
||||
require_once('includes.inc.php');
|
||||
$data = '';
|
||||
$error = 0;
|
||||
$values = null;
|
||||
$uid = $_GET['uid'];
|
||||
$length = ($_GET['length'] && gettype(+$_GET['length']) == 'integer') ? +$_GET['length'] : 10;
|
||||
$database = new Database();
|
||||
|
||||
$questions_count = $database->query('SELECT COUNT(*) FROM "Questions"')['data'][0]['count'];
|
||||
echo($questions_count);
|
||||
|
||||
if($length > $questions_count) {
|
||||
$error = 12101;
|
||||
$values = array($questions_count);
|
||||
}
|
||||
Database::create_response($data, $error, $values);
|
||||
?>
|
||||
Reference in New Issue
Block a user