protected function save_new_question() { $exam_id = DB::escape($this->post->exam_id); $question = DB::escape($this->post->question); $answer_1 = DB::escape($this->post->answer_1); $answer_2 = DB::escape($this->post->answer_2); $answer_3 = DB::escape($this->post->answer_3); $answer_4 = DB::escape($this->post->answer_4); $correct_answer = DB::escape($this->post->correct_answer); $active = DB::escape($this->post->active); ExamsData::create_new_question($exam_id, $question, $answer_1, $answer_2, $answer_3, $answer_4, $correct_answer, $active); $this->set('message', '<div id="success">New Question Added!</div>'); $this->set('questions', ExamsData::get_questions_admin()); $this->set('exams', ExamsData::get_exams_admin()); $this->show('exams/exam_admin'); }