Re: [esteban] How to make a back link to list page the same which came?
Hi esteban,
So the problem is that users might be on page 3 of your list page (which uses pagination,) click a link to a detail page, and you want to provide a link back to page 3 of your list page instead of page 1?
This is a little tricky, but I have a solution for you.
On your list page, change the "_link" code from this:
<a href="<?php echo $record['_link'] ?>">
...to this:
<a href="wydarzenia-art.php?page=<?php echo @$_REQUEST['page'] ? htmlspecialchars($_REQUEST['page']) : 1 ?>&num=<?php echo $record['num'] ?>">
...replacing the code in red with the name of your record variable.
And then change the link in your detail page from:
<a href="wydarzenia-lista.php">
...to this:
<a href="wydarzenia-lista.php?page=<?php echo htmlspecialchars(@$_REQUEST['page']) ?>">
I hope this helps! Please let me know if you have any questions.
All the best,
Chris