pagination current page not changing |
Hi Coders,
i just wanna know on how to set-up pagination while enable_query_strings is enable or set to true. i tried in many ways but im failed. and i just get the link work but the data cannot retrieved for the next page. here my current code. PHP Code: $config["base_url"] = base_url() . "index.php?dir-move=public&switch=branch_reports&task=branch_report_por";
i got link below but the data are not change,
?dir-move=public&switch=branch_reports&task=branch_report_por&per_page=1 ?dir-move=public&switch=branch_reports&task=branch_report_por&per_page=2 ?dir-move=public&switch=branch_reports&task=branch_report_por&per_page=3 ?dir-move=public&switch=branch_reports&task=branch_report_por&per_page=4 ?dir-move=public&switch=branch_reports&task=branch_report_por&per_page=5 (09-22-2016, 03:12 AM)jaysondotp Wrote: i got link below but the data are not change, Try using GET instead of URI Segment to get the page number. $this->input->get('per_page', TRUE); // XSS Clean $this->input->get('per_page', FALSE); // No XSS Filter https://www.codeigniter.com/user_guide/l...input.html |
Welcome Guest, Not a member yet? Register Sign In |