Commit afaf3175 by Jansa Jose

dc

parent a517a093
...@@ -93,6 +93,7 @@ public function getBookedService($postData = array(),$start = '',$per_page = '', ...@@ -93,6 +93,7 @@ public function getBookedService($postData = array(),$start = '',$per_page = '',
if($start != 0 || $per_page != 0){ if($start != 0 || $per_page != 0){
$this->db->limit($per_page,$start); $this->db->limit($per_page,$start);
} }
$this->db->group_by('BUK.booking_id');
$this->db->order_by('BUK.booking_id','DESC'); $this->db->order_by('BUK.booking_id','DESC');
$bookData = $this->db->get(); $bookData = $this->db->get();
if(!empty($bookData) && $bookData->num_rows() > 0){ if(!empty($bookData) && $bookData->num_rows() > 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