12.8. Project

The PHP project is a simple journal-entry manager. Several PHP pages are implemented: a launching point, a page to add an entry, a page to view the last ten entries with the option of searching for matching entries, and a page to view the details about a specific entry. The journal entries are stored in a MySQL database and dynamically displayed in the PHP pages.

12.8.1. Journal MySQL Database

First, the database is created. The database is named journal, and there is one table named entries. The entries table has four fields:

  • id This is a unique integer to identify the entry that the user wants to see displayed; it is an auto_increment field (discussed later) and the key into the table.

  • date This is the date and time the item ...

Get Open Source Web Development with LAMP: Using Linux, Apache, MySQL, Perl, and PHP now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.