Open saruman opened 9 years ago
Get total pages and paginate by page.
$data = DB::select()->from('table'); $data = Paginate::factory($data)->page(1, 10)->execute(); $result = $data->result(); $total_pages = $data->count_pages();
Also, remove mysql_real_escape_string (conflict with mysqli).
Get total pages and paginate by page.
Also, remove mysql_real_escape_string (conflict with mysqli).