Commit 137517b9 by Jansa Jose

docor availability

parent 0bf5c628
...@@ -1265,8 +1265,8 @@ CASE when tbl_registration.gender='0' then 'MALE' when tbl_registration.gender=' ...@@ -1265,8 +1265,8 @@ CASE when tbl_registration.gender='0' then 'MALE' when tbl_registration.gender='
$diff = $data['amount']; $diff = $data['amount'];
$promo_name = ''; $promo_name = '';
} }
$this->db->or_where("(booking_status = '1' OR booking_status = '2')");
$check = $this->db->get_where('tbl_booking',array('doctor_id'=>$data['doctor_id'],'clinic_id'=>$data['clinic_id'],'date'=>$data['date'],'time'=>$data['time'],'payment_status'=>'1',('booking_status'=>'1' or 'booking_status' => '2'))); $check = $this->db->get_where('tbl_booking',array('doctor_id'=>$data['doctor_id'],'clinic_id'=>$data['clinic_id'],'date'=>$data['date'],'time'=>$data['time'],'payment_status'=>'1'));
echo $this->db->last_query();exit(); echo $this->db->last_query();exit();
$this->db->select('name,profile_pic,specialization'); $this->db->select('name,profile_pic,specialization');
$doctr_data = $this->db->get_where('tbl_doctors',array('id'=>$data['doctor_id']))->row_array(); $doctr_data = $this->db->get_where('tbl_doctors',array('id'=>$data['doctor_id']))->row_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