Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. $response['total'] = $this->db->query('SELECT FOUND_ROWS() count;')->row()->count;
  2. $response['limit'] = $limit;
  3. $response['start'] = $start;
  4. $response['from'] = $start + 1;
  5. $response['to'] = $start + $query->num_rows();
  6. $response['count'] = $query->num_rows();
  7. $response['records'] = $query->result();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement