631Chapter 34PostgreSQL} else { print( Connection to the cartoons (X web hosting)

631Chapter 34PostgreSQL} else { print(

Connection to the cartoons database hasfailed

); } ?> Notice how different our connect parameters are from what we d use with MySQL. Theyaren t even comma separated! This function is even insensitive to the order in which they are supplied you simply have to use the appropriate parameter name and supply the corresponding value. Additional recognized parameters for this function are options, tty, and port. The rest of this script reads much like a similar script would for MySQL. A query is defined, we get the results of that as an object, issue a second query to get the character data, anduse the ubiquitous print statement to put it all into a nice html table. This is fine as far as it goes, but we don t yet have a way to insert, edit, and delete records. InListing 34-2, we create a new form for the purpose of inserting records. Listing 34-2:insert.php

Cartoons and Characters Database

If you are looking for cheap and quality webhost to host and run your website check Jboss Web Hosting services.

Leave a Reply