tags:

views:

152

answers:

1

By default the pagination links will be <a href="http://mysite/index.php/student/page/0"&gt;1&lt;/a&gt; and <a href="http://mysite/index.php/student/page/1"&gt;2&lt;/a&gt;

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'] = '<p>';
    $config['full_tag_close'] = '</p>';
    $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?

A: 

Please describe more detail for the not working? can u show the PHP error? and please use the code tag / feature in stackoverflow, ur coding display a bit mess there.

Shiro