************************************************************************
********* Downloadable Code For Chapter 17, Beginning PHP **************
************************************************************************

The file dir_tables.sql contains Data Definition Language SQL commands compatible with MySQL. To create the tables required by the directory system, bring up a command prompt, and cd to the directory containing this file. If you already have the sample_db database set up from a previous chapter, then skip this step. Otherwise, you need to enter:

> mysqladmin -uroot -p create sample_db

Now type the following at the command prompt:

> mysql -Dsample_db -uroot -p < dir_tables.sql

entering your MySQL root password when prompted.

NOTE:

The file "dir_manager.php" does not contain exactly the same code as in some early printings of Chapter 17 of "Beginning PHP":

"dir_manager.php", function "edit_new()", line 361:

     if($send_mail){

is presented in Chapter 17 as:

     if(send_mail){

This has been corrected in subsequent reprints.