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

[eluser]farocco[/eluser]
Hi All,

What am I doing wrong?

I am getting more pages than is necessary.

Thanks

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

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

$config['total_rows'] = $this->db->count_all_results('shopinventory');

$this->pagination->initialize($config);
$data['main_content'] = 'site/list';

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


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