Welcome Guest, Not a member yet? Register   Sign In
Help pagination not working
#3

[eluser]farocco[/eluser]
$config['base_url'] = 'http://localhost/ci/index.php?site/query/';
$config['per_page'] = '10';

$this->db->like("Size", $this->input->post('size'),'after');
$config['total_rows'] = $this->db->count_all_results('shopinventory');
$this->pagination->initialize($config);

$this->db->like("Size", $this->input->post('size'),'after');
$data['query'] = $this->db->get('shopinventory',$config['per_page'],$this->uri->segment(3));

$data['title'] = 'National Tire Warehouse';
$data['main_content'] = 'site/list';

$this->load->view('includes/template', $data);

This seems to work until I select next page, then I get all records.
I think I am losing the post value.

Is there an eaiser way to code this?

Thanks


Messages In This Thread
Help pagination not working - by El Forum - 01-22-2010, 10:57 AM
Help pagination not working - by El Forum - 01-22-2010, 11:20 AM
Help pagination not working - by El Forum - 01-22-2010, 11:38 AM
Help pagination not working - by El Forum - 01-25-2010, 03:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB