Commit a2d5cc1c by Jansa Jose

search

parent accc2a81
...@@ -1074,7 +1074,7 @@ CASE when tbl_registration.gender='0' then 'MALE' when tbl_registration.gender=' ...@@ -1074,7 +1074,7 @@ CASE when tbl_registration.gender='0' then 'MALE' when tbl_registration.gender='
function get_doctor_profile($doctorid){ function get_doctor_profile($doctorid){
$this->db->select("tbl_doctors.*,CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'FEMALE' else 'OTHERS' end as pt_gender,tbl_specialization.specialization_name,tbl_specialization.sub_name,tbl_clinic.street_address as location_name,tbl_clinic.location_lattitude,tbl_clinic.location_longitude,COUNT(DISTINCT(tbl_review.review_id)) as reviewcount,GROUP_CONCAT(DISTINCT(tbl_doctors_photos.photo_url) SEPARATOR ",") as photos"); $this->db->select("tbl_doctors.*,CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'FEMALE' else 'OTHERS' end as pt_gender,tbl_specialization.specialization_name,tbl_specialization.sub_name,tbl_clinic.street_address as location_name,tbl_clinic.location_lattitude,tbl_clinic.location_longitude,COUNT(DISTINCT(tbl_review.review_id)) as reviewcount,GROUP_CONCAT(DISTINCT(tbl_doctors_photos.photo_url) SEPARATOR ',') as photos");
$this->db->join('tbl_clinic_doctors', 'tbl_clinic_doctors.doctor_id = tbl_doctors.id','INNER'); $this->db->join('tbl_clinic_doctors', 'tbl_clinic_doctors.doctor_id = tbl_doctors.id','INNER');
$this->db->join('tbl_clinic', 'tbl_clinic.id = tbl_clinic_doctors.clinic_id','INNER'); $this->db->join('tbl_clinic', 'tbl_clinic.id = tbl_clinic_doctors.clinic_id','INNER');
$this->db->join('tbl_doctors_photos', 'tbl_doctors_photos.doctor_id = tbl_doctors.id','LEFT'); $this->db->join('tbl_doctors_photos', 'tbl_doctors_photos.doctor_id = tbl_doctors.id','LEFT');
......
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