Using PHP in a page template
-
Hi,
I have embeded a PHP script into my page template. This script fetches records from a DB and displays the records. It displays 10 records per page. To test the script , i added 12 records. The first 10 displayed fine. I got a ‘Next Page” link, but this link points back to index.php!
How can i reference the same page in the next link? So the page that has the script, you want on clicking next to come back to it because it has the code to display the next set of records.
So if the page was called page.php, you provide a ‘Next’ link that appends additional information to page.php so that second time around, it only displays the records for that page.
How can i do this?
- The topic ‘Using PHP in a page template’ is closed to new replies.