$offset = $pageSize*($page-1); $totalRecs = $this->Booking_model->findAllJoinBookingTables("1=1 group by `bookings`.`id`", "COUNT(*) as count"); $totalCount = $totalRecs[0]['count']; $offset = $pageSize*($page-1); $totalPages = ceil($totalCount/$pageSize); $this->db->limit($pageSize,$offset);
totalRecs
findAllJoinBookingTables
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)