Commit 88cb09fe by Jansa Jose

price

parent 48392bfa
......@@ -1080,9 +1080,12 @@ CASE when tbl_registration.gender='0' then 'MALE' when tbl_registration.gender='
$this->db->join('tbl_doctors_photos', 'tbl_doctors_photos.doctor_id = tbl_doctors.id','LEFT');
$this->db->join('tbl_specialization', 'tbl_specialization.id = tbl_doctors.specialization','LEFT');
$this->db->join('tbl_review', 'tbl_review.doctor_id = tbl_doctors.id','LEFT');
$query = $this->db->get_where("tbl_doctors",array("tbl_doctors.id"=>$data['doctor_id'],'tbl_clinic_doctors.clinic_id'=>$data['clinic_id']));
$this->db->where('tbl_clinic_doctors.clinic_id',$data['clinic_id']);
$this->db->where('tbl_clinic_doctors.doctor_id',$data['doctor_id']);
if($query->num_rows() > 0 && !is_null($query->row_array()['id'])){
$query = $this->db->get("tbl_doctors");
if($query->num_rows() > 0 /*&& !is_null($query->row_array()['id'])*/){
$query = $query->row_array();
$this->db->select("CAST(AES_DECRYPT(`tbl_doctors`.`dob`,'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') as CHAR) as dob_new");
......
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