Chapter 6. Adding Support for Multiple Pages

So far you've created an extremely basic blog. But what good is a blog if a user can't find out more about its author?

In this chapter, you'll learn how to modify your application to support multiple pages, so you can add an "About the Author" page. To do this requires that you learn how to accomplish each of the following steps:

  • Add a page column to the entries table

  • Modify functions to use a page as part of the WHERE clause in your MySQL query

  • Add a hidden input to the form on admin.php to store the page

  • Modify update.inc.php to save page associations in the database

  • Use an .htaccess file to create friendly URLs

  • Add a menu

  • Modify display options for the "About the Author" and "Blog" pages

By the end of ...

Get PHP for Absolute Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.