Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $response['total'] = $this->db->query('SELECT FOUND_ROWS() count;')->row()->count;
- $response['limit'] = $limit;
- $response['start'] = $start;
- $response['from'] = $start + 1;
- $response['to'] = $start + $query->num_rows();
- $response['count'] = $query->num_rows();
- $response['records'] = $query->result();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement