$topics->getTopic(); $topicArray = $topics->getTopicArray(); $question->setAllTopics($topicArray); $type = $question->getType(); $question->showQuestionDetails(); $answer->setQuestionID($q_id); $answer->getAnswers(); $answer->setAnswerList(); $answer->setAnswerType($type); if (isset($_REQUEST['submit']) && !$a_id && $_REQUEST['submit'] == Button_11) { $answer->setChangedAnswers($changed_answers); $answer->updateChangedAnswers(); } if ($a_id) { $answer->changeCorrect($a_id); $answer->updateTruthFalse(); } if (isset($_REQUEST["editAnsw"])) { //$answer->setAnswerList($answerList); $answer->setType(); } if (!isset($_REQUEST["editAnsw"]) || empty($_REQUEST["editAnsw"])) { $answer->showAnswers(); } break; case 'editTopic': if (!isset($_SESSION['values']['topic']) || empty($_SESSION['values']['topic'])) { $topics->setTopicID($t_id); $topics->setTopic($t_id); } else { if ($error) {