Skip to Content
PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
book

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

by Larry Ullman
May 2003
Intermediate to advanced
592 pages
14h 28m
English
Peachpit Press
Content preview from PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

Creating the Database

The e-commerce site in this example will use the simply named ecommerce database, created in Chapter 8, “Security.” Here, I’ll explain the structure of the database as a whole and create the required tables.

The ecommerce database will contain four tables: two for managing the products being sold, one for the customers, and another for the orders. The artists table (Table 13.1) stores the information for the artists whose work is being sold. It contains a minimum of information, but you could easily add birth and death dates, biographical data, and so forth.

Table 13.1. The artists table will be used to link artist names to each individual print (see Table 13.2).
The artists Table
COLUMNTYPE
artist_idINT(3)
first_nameVARCHAR(20) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

Larry Ullman

Publisher Resources

ISBN: 0321186486Purchase book