problem with pagination |
[eluser]codecombustor[/eluser]
for some reason the pagination isn't working when i click next $this->load->library('pagination'); $c_paginate['base_url'] = site_url('record/index'); $c_paginate['per_page'] = '6'; $config['uri_segment'] = '3'; $query = $this->db->get_where('table', array('fieldname' => $field)); if ($query->num_rows() > 0) { $i=0; foreach ($query->result() as $row) { $this->data['rec'][$i] =$row->field2; $this->data['rec'][$i] = $row->field3; $i++; }
[eluser]jairoh_[/eluser]
where is the $config['total_rows']? and besides, you didn't not initialize it. http://ellislab.com/codeigniter/user-gui...ation.html |
Welcome Guest, Not a member yet? Register Sign In |