Commit 6e0d7946 by Jansa Jose

patient notification

parent 8a78708c
...@@ -1673,7 +1673,7 @@ class Webservice_model extends CI_Model { ...@@ -1673,7 +1673,7 @@ class Webservice_model extends CI_Model {
$this->db->join('tbl_doctors','tbl_doctors.id = tbl_booking.doctor_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->join('tbl_specialization','tbl_specialization.id = tbl_doctors.specialization');
$this->db->limit($per_page,$start); $this->db->limit($per_page,$start);
$this->db->order_by('tbl_patient_notification','DESC'); $this->db->order_by('tbl_patient_notification.id','DESC');
$query = $this->db->get_where('tbl_patient_notification',array('tbl_patient_notification.patient_id'=>$id))->result(); $query = $this->db->get_where('tbl_patient_notification',array('tbl_patient_notification.patient_id'=>$id))->result();
if(count($query) > 0){ if(count($query) > 0){
return $query; 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