Tech Tutorials Database
GeekArticles Operating Systems Linux

Linux Journal: Web Applications With PHP And PostgreSQL

Category: Linux
Comments (0)

Tim Perdue Here is the code from my Linux Journal article on how to build a business application using PostgreSQL's transactions and PHP4. Download Code Common.php <?php //connect to postgres database $conn = pg_pconnect ( "user=tperdue dbname=linuxjournal" ); //see if our connection was successful if (! $conn ) { //connection failed - exit the page with an error //you could also try to proceed without the //database - it's up to you echo pg_errormessage ( $conn ); exit; } //now let's...n


Sponsored Links

Read Next: Linux Multithreading Advances