Welcome Guest, Not a member yet? Register   Sign In
pagination bug,unable to click on first page,everything else works fine

class Basicpagination extends CI_Controller
   function loadpage($offset=0)
    $total=$this->db->query("select * from franta");

    $query=$this->db->query("select * from franta limit $offset,5");
    //echo $this->table->generate($query);
     $config['base_url'] = 'http://localhost/production//tuts/basicpagination/loadpage/';
     $config['total_rows'] =$total->num_rows() ;
     $config['per_page'] = 5;
     $config['num_links'] = 4;
     $config['uri_segment'] = 3;
     echo $this->table->generate($query);
     echo $links;
I used htacces to remove index.php from the url.
Could this be a problem ?

Can you please tell me where is the mistake ?
Or is it a bug ?
The problem is the firspage link always appears to be higlighted.
If I click on the 3rd page it displays the correct results but the 1st page link remains higlighted.
Thanks to anyone kind enough to answer.

Theme © iAndrew 2016 - Forum software by © MyBB