pagination current page not changing - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Choosing CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=8) +--- Thread: pagination current page not changing (/showthread.php?tid=66217) |
pagination current page not changing - jaysondotp - 09-21-2016 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"; RE: pagination current page not changing - jaysondotp - 09-22-2016 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 RE: pagination current page not changing - whomikey - 09-30-2016 (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/libraries/input.html |