Rahul gamit Posted March 1, 2011 Share Posted March 1, 2011 For navigation pagination is working good, but whenever i am deleting any record then the pagination is not working. i have used inbuilt class of pagination. //controller function GetAllSystemSolution() { $perpage=(int)5; $config['base_url'] = 'http://localhost:8080/Codeigniter/index.php/Controller/GetAllSystemSolution/'; tblsystemsolution table. $config['total_rows'] = $this->db->get('tblsystemsolution')-> num_rows(); $config['per_page'] = '5'; $this->session->set_userdata('PaginationNumber',$this->uri->segment(3)); $data['query'] = $this->ModelSystemSolution->GetSystemSolution($perpage,(int)$this->uri->segment(3)); $this->pagination->initialize($config); $this->load->view('ViewAllSystemSolution',$data); } //view $this->pagination->create_links(); so, page navigation is working fine, but whenever i am deleting the record the pagination is not working. Quote Link to comment https://forums.phpfreaks.com/topic/229247-problem-in-pagination/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.