[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