Commit 31362e2b by Jansa Jose

web pat

parent 14ea7b6a
......@@ -597,12 +597,12 @@
$this->db->insert('tbl_clinic_doctors',array('doctor_id'=>$insertid,'clinic_id'=> 0));
$this->db->insert('tbl_consultation',array('doctor_id'=>$insertid,'clinic_id'=> 0,'date'=>'""','date_secondary'=>'""','active_schedule'=> 0));
$query = $this->db->get_where("tbl_doctors",array("id"=>$insertid));
$query = $this->db->get_where("tbl_doctors",array("id"=>$insertid))->row_array();
if($query['gender'] == '0'){ $query['gender'] == 'MALE';}
else if($query['gender'] == '1'){ $query['gender'] == 'FEMALE';}
else{ $query['gender'] == 'OTHERS';}
$return_array = array('status'=>'success','data'=>$query->row_array());
$return_array = array('status'=>'success','data'=>$query);
}
......
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