Commit 93a7806f by Jansa Jose

search doctors dates issues

parent 89494efb
......@@ -1034,14 +1034,6 @@ class Webservice_model extends CI_Model {
//........................ search a doctor by differnt fields
function search_doctor_query($data,$lat,$lng){
//print_r($lat);
//print_r($lng);
/* if(isset($data['date']) && strlen($data['date'])){
$date = $data["date"];
$where_date = '(tbl_doctor_leave.start_date > '. $date.')';
}else{
$where_date="";
} */
$this->db->select("DISTINCT(tbl_clinic.id) as clinic_id,tbl_doctors.id as doctor_id,
tbl_doctors.name,
tbl_doctors.profile_pic AS doctor_photo,
......@@ -1134,6 +1126,7 @@ class Webservice_model extends CI_Model {
//$where = '$date<tbl_doctor_leave.start_date OR $date>tbl_doctor_leave.end_date';
$this->db->where("$date<tbl_doctor_leave.start_date OR $date>tbl_doctor_leave.end_date");
$leave_query = $this->db->get('tbl_doctor_leave')->result();
echo $this->db->last_query();
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