October 2009
Beginner
408 pages
7h 27m
English
Now that your entries have a page associated with them, you can start using the page as a filter to retrieve only the data that matches your current page. This is really similar to the way you used the id column to filter your query to only return one entry. By using the page, you filter the query to only return entries for one page.
First—and this is very important—you need to somehow pass a page variable to your script. You do this in the same way that you previously passed an entry ID to the script, using the URL and the $_GET superglobal.
For example, you navigate to the following address to look at the blog page:
http://localhost/simple_blog/?page=blog ...
Read now
Unlock full access