Commit babf54d5 by Manoj

changes

parent f2258ff4
......@@ -2406,6 +2406,7 @@ class ApplicationController extends CI_Controller
}
public function questionEdit($id){
if(isset($_POST['submit'])){
......@@ -2425,7 +2426,7 @@ class ApplicationController extends CI_Controller
'academic' => $academic,
'exam_type' => $exam_type,
'category' => $category,
'schedule_id' => $schedule,
'schedule_id' => $schedule,
'question' => $question,
'option_a' => $option_a,
'option_b' => $option_b,
......@@ -2433,8 +2434,10 @@ class ApplicationController extends CI_Controller
'option_d' => $option_d,
'answer' => $answer,
);
// print_r($id);
// print_r( $update_array);exit;
$update = $this->mcommon->common_update('question',$update_array, array('id'=> $id) );
$update = $this->mcommon->common_edit('question',$update_array,array('id' => $id));
if ($update) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment