pg_result_error()

From: Date: Fri, 12 Dec 2003 03:09:54 +0000
Subject: pg_result_error()
Groups: php.db 
Request: Send a blank email to php-db+get-32009@lists.php.net to get a copy of this message
What good is this function? A quick example of the wall Im running into -> $sql = 'INSERT INTO .....'; $result = pg_query($conn_id, $sql); if ($result === false) { var_dump( pg_result_error( $result ) ); } According to the manual, pg_result_error takes the result resource. If that resource is boolean false for one reason or another, then pg_result_error isn't useful. Anyone has any other ideas, besides using pg_last_error()? Thanks

« previous php.db (#32009) next »