pagging query string problem

#1
[eluser]hamzakhan[/eluser]
i had enabled query string and my function in controller is below
and url is http://localhost/server/connectionspot/admin/hear/index/&per_page=3
and pagging is not working please tell me where is the problem
Code:
function get_regions($get_table, $lang)
    {
        // set language var
        if( $lang == "en" ) {
              $data['lang']  = 'en';
              $get_table = 'cs_continents';
        }else{
              $data['lang']  = 'ch';
                $get_table = 'cs_continents_ch';
        }
        
        $this->load->library('pagination');
        $config['base_url'] = base_url() . 'admin/geographic/region/index/';
        $config['total_rows'] = $this->db->count_all($get_table); //cs_regions
        $config['uri_segment'] = '3';
        $config['per_page'] = 15;
        $this->pagination->initialize($config);
}


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.