Showing the Products Online

Now that the database exists and there are products therein, you can create the HTML and database-interaction that allows users to view the different products. Again, there's not too much new here (the most important part of the application will be in the next two sections), but I'll go through it so you understand how the whole operates. All of the scripts and images—should you decide to follow this same format—are available on the companion Web site.

To create the store:

1.
Create the header file in your text editor (Script 6.8). I won't go over this script in detail except to point out that it creates a table consisting of three rows: the top header, the middle content, and the bottom footer (which is in the ...

Get PHP Advanced for the World Wide Web: Visual QuickPro Guide 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.