Fix
This commit is contained in:
@@ -13,7 +13,7 @@ if (isset($_GET['n'])) {
|
|||||||
$questions = $db->getQuestions($n);
|
$questions = $db->getQuestions($n);
|
||||||
|
|
||||||
$fullarray[] = [];
|
$fullarray[] = [];
|
||||||
for ($i = 0; $i < len($questions); $i++) {
|
for ($i = 0; $i < count($questions); $i++) {
|
||||||
$answers[] = array($questions['answer0'], $questions['answer1'], $questions['answer2']);
|
$answers[] = array($questions['answer0'], $questions['answer1'], $questions['answer2']);
|
||||||
$jsonarray[] = array("id" => $questions['id'], "answers" => $answers, "solution" => $questions['solution']);
|
$jsonarray[] = array("id" => $questions['id'], "answers" => $answers, "solution" => $questions['solution']);
|
||||||
$fullarray[] = $jsonarray;
|
$fullarray[] = $jsonarray;
|
||||||
|
Reference in New Issue
Block a user