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 this chapter, your blog will have two pages: one will support multiple entries, while the other will support only a single entry.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.39.133