Return to Snippet

Revision: 24284
at February 25, 2010 06:53 by gauravjassal


Initial Code
try {
	$db = new PDO("pgsql:dbname=dbname;host=localhost", "username", "password" );
	echo "Database connection established.\n";
	$db = null;
}
catch(PDOException $e){
	echo $e->getMessage();
}

Initial URL

                                

Initial Description

                                

Initial Title
PHP PDO Connection

Initial Tags

                                

Initial Language
PHP