Jump to content

Problem in pagination


Rahul gamit

Recommended Posts

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.

 

Link to comment
https://forums.phpfreaks.com/topic/229247-problem-in-pagination/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.