pg_connect and error messages

From: Date: Thu, 14 Mar 2002 23:35:18 +0000
Subject: pg_connect and error messages
Groups: php.general 
Request: Send a blank email to php-general+get-88593@lists.php.net to get a copy of this message
Is there any way to get an error message via pg_errormessage() when using pg_connect() and it fails? Currently I have $conn=@pg_connect(), I don't want error text showing up where the HTML cursor is, I intend to put any error text elsewhere. Unfortunately, $conn is FALSE and pg_errormessage() doesn't like that. Suggestions? David

« previous php.general (#88593) next »