Virajsinh

pagination in CodeIgniter php

Jul 23rd, 2020 (edited)
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1.         $CI=&get_instance();
  2.         // $total_next_records=$total_next_records+$page;
  3.         $cr=$CI->db->query("SELECT res_parent FROM tbl_data.resumes limit $page, $total_next_records");
  4.         $data=$cr->result_array();
  5.         $res_parent = array_column($data, 'res_parent');
  6.         echo ("SELECT res_parent FROM tbl_data.resumes limit $page, $total_next_records")."<br />";
  7.  
  8.         foreach($data as $key => $item){
  9.             echo $item['res_parent']."<br />";
  10.             //sendNotification($item['res_id'], "New Vacancy Post Added.");  
  11.         }
  12.         $page=$page+$total_next_records;
  13.         if(sizeof($data)>1)
  14.             send_notification_in_loop($page,$total_next_records);
Add Comment
Please, Sign In to add comment