Commit 682da54b by Jansa Jose

search doctors date5

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