Workshop

The workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice.

Quiz

1:

When passing a variable through the query string, which superglobal does it belong in? (Hint: You passed a variable this way in the last section.)

A1:

The $_GET superglobal.

2:

How many records in the address, email, telephone, and fax tables can you have for each individual in your master_name table?

A2:

As many as you want it's relational!

Activities

  1. Go through each of the administration scripts and modify the code so that a link to the menu is printed at the bottom of each screen.

  2. Use the second version of the addentry.php script to add secondary contact information to records in your database. Figure 19.8 shows how a record will look, after secondary contact information is added to it.

    Figure 19.8. An individual's record, with multiple entries in tables.

    graphics/19fig08.gif



Sams Teach Yourself PHP, MySQL and Apache in 24 Hours
Sams Teach Yourself PHP, MySQL and Apache in 24 Hours
ISBN: 067232489X
EAN: 2147483647
Year: 2005
Pages: 263

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net