Pagination with multiple searcing criteria in codeigniter

Posted by ASD on Stack Overflow See other posts from Stack Overflow or by ASD
Published on 2010-03-09T05:50:47Z Indexed on 2010/05/28 9:31 UTC
Read the original article Hit count: 278

Filed under:

By default the pagination links will be 1 and 2 If i use the search criteria, (id name), all the 2 are optional.

$config['base_url'] = base_url()."index.php/searchStudent/".$id."/'".$name."'/"; $config['total_rows'] = count($search1); $config['per_page'] = '1';//display perpage $config['num_links'] = 1; $config['full_tag_open'] = '

'; $config['full_tag_close'] = '

'; $this->pagination->initialize($config); $data['patient_result'] = $this->Student_Model->searchStudent($id,$name,$config['per_page'],$this->uri->segment(3));

But its not working Whats wrong here?

© Stack Overflow or respective owner

Related posts about pagination