Commit 682da54b by Jansa Jose

search doctors date5

parent 4fc7775f
......@@ -1127,8 +1127,8 @@ class Webservice_model extends CI_Model {
//$where = '$date<tbl_doctor_leave.start_date OR $date>tbl_doctor_leave.end_date';
// $this->db->where_not_in("($date<tbl_doctor_leave.start_date OR $date>tbl_doctor_leave.end_date)");
// $leave_query = $this->db->get('tbl_doctor_leave')->result();
$this->db->query("SELECT * FROM `tbl_doctor_leave` WHERE NOT($date > `tbl_doctor_leave`.`start_date` OR $date < `tbl_doctor_leave`.`end_date`)");
echo $this->db->last_query();
$this->db->query("SELECT * FROM `tbl_doctor_leave` WHERE NOT($date > `tbl_doctor_leave`.`start_date` OR $date < `tbl_doctor_leave`.`end_date`)")->result();
//echo $this->db->last_query();
echo "<pre>";print_r($leave_query);exit();
}
$return_array = array('status'=>'success','data'=>$query->result_array());
......
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