Commit 4e92f47b by Jansa Jose

Notification Pagination Fixxs

parent 70d3b4ae
...@@ -3242,9 +3242,9 @@ class Webservice_model extends CI_Model { ...@@ -3242,9 +3242,9 @@ class Webservice_model extends CI_Model {
//SELECT IIF(Obsolete = 'N' or InStock = 'Y', 1, 0) as Saleable, * FROM Product //SELECT IIF(Obsolete = 'N' or InStock = 'Y', 1, 0) as Saleable, * FROM Product
$this->db->select("read_status,id,type,message"); $this->db->select("read_status,id,type,message");
$this->db->order_by('tbl_doctor_notifications.id','DESC'); $this->db->order_by('tbl_doctor_notifications.id','DESC');
if($start!=0 && $per_page!=0){ // if($start!=0 && $per_page!=0){
$this->db->limit($per_page,$start); $this->db->limit($per_page,$start);
} //}
$result = $this->db->get_where('tbl_doctor_notifications',array('doctor_id'=>$doctorid))->result(); $result = $this->db->get_where('tbl_doctor_notifications',array('doctor_id'=>$doctorid))->result();
echo $this->db->last_query();exit(); echo $this->db->last_query();exit();
if(count($result) > 0){ if(count($result) > 0){
......
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