Update
This commit is contained in:
@@ -12,6 +12,10 @@ if (isset($_GET['n'])) {
|
||||
}
|
||||
$questions = $db->getQuestions($n);
|
||||
|
||||
$questionsobj = json_encode($questions);
|
||||
$answers[] = array($questions['answer0'], $questions['answer1'], $questions['answer2']);
|
||||
|
||||
$jsonarray[] = array("id" => $questions['id'], "answers" => $answers, "solution" => $questions['solution']);
|
||||
|
||||
$questionsobj = json_encode($jsonarray);
|
||||
echo($questionsobj);
|
||||
?>
|
||||
|
Reference in New Issue
Block a user