3. Save this (Post office web site) file as conn_comic.php in the

3. Save this file as conn_comic.php in the includes/ folder. You can call it whatever you like, but you are going to be including it in a few files using the require() function, so you ll have to remember to use the filename you came up with. Or, you could go with the name we came up with, because we took the time to come up with such a clever name, and have used it in subsequent PHP pages. 4. Enter the following code, and save it as db_insertpics.php. If you used the four pictures we provided for you and put them in the postcards/ folder, you need not change this file. If you are using a different number of postcards, or have created your own, make sure you modify this code to reflect those changes. And, if you have named the conn_comic.php file something you think is more clever than our name, make sure you reflect that change here. How It Works First, the script connected to the server using the correct username and password. $conn = mysql_connect( localhost , bp5am , bp5ampass ); The next step is to create the database, called postcard. If the creation is successful, the script prints Database created to the screen and moves on. 338 Chapter 11
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.

Leave a Reply