Commit c933b074 by Jansa Jose

patient noti

parent 2f0870b8
......@@ -1668,11 +1668,12 @@ class Webservice_model extends CI_Model {
}
function notification($id,$start,$per_page){
$this->db->select('tbl_patient_notification.id,tbl_patient_notification.booking_id,tbl_patient_notification.type,tbl_patient_notification.message,tbl_patient_notification.time,tbl_doctors.id as doctor_id,tbl_patient_notification.booking_id,tbl_booking.date,tbl_doctors.profile_pic as doctor_photo,tbl_doctors.name as doctor_name,tbl_specialization.specialization_name as doctor_specialization');
$this->db->select('tbl_patient_notification.id,tbl_patient_notification.booking_id,tbl_patient_notification.type,tbl_patient_notification.message,tbl_patient_notification.time,tbl_doctors.id as doctor_id,tbl_patient_notification.booking_id,tbl_booking.date,tbl_doctors.profile_pic as doctor_photo,tbl_doctors.name as doctor_name,tbl_specialization.specialization_name as doctor_specialization,tbl_patient_notification.read_status');
$this->db->join('tbl_booking','tbl_booking.id = tbl_patient_notification.booking_id');
$this->db->join('tbl_doctors','tbl_doctors.id = tbl_booking.doctor_id');
$this->db->join('tbl_specialization','tbl_specialization.id = tbl_doctors.specialization');
$this->db->limit($per_page,$start);
$this->db->order_by('tbl_patient_notification','DESC');
$query = $this->db->get_where('tbl_patient_notification',array('tbl_patient_notification.patient_id'=>$id))->result();
if(count($query) > 0){
return $query;
......
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