Welcome Guest, Not a member yet? Register   Sign In
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/a...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);
}




Theme © iAndrew 2016 - Forum software by © MyBB