PHP Programming > Beginners - Learning PHP
PHP Pagination-return to current page after editing record
HelpWithPhP:
I have added pagination code and it works fine. However, I am wondering how to change the pagination code so that after editing a record on pg 5 and pressing "save" I am returned to the current page (pg 5) rather than to page 1. I've searched on how to do this but can't seem to find an answer.
Thanks.
Noodles:
cant you hold the page number in a $var and then on save return to the
url$var
wilson382:
yep like Noodles said,
* on save store the current page
* when saved redirect to the stored page number
HelpWithPhP:
I'm sorry, I'm very new to PHP. How do I find where the current page variable is stored? Would this be in the pagination.php document?
wilson382:
can show your pagination code? i will be happy to help then
Navigation
[0] Message Index
[#] Next page
Go to full version