Fw: [PHP-NOTES] note 59254 added to function.pg-last-error

From: Date: Wed, 30 Nov 2005 19:51:01 +0000
Subject: Fw: [PHP-NOTES] note 59254 added to function.pg-last-error
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969371086@lists.php.net to get a copy of this message
One more note for you :) ----- Original Message -----
The example is not correct. You can't call pg_last_error() when pg_connect() failed. <?php pgsql_conn = @pg_connect("dbname=mark host=localhost"); var_dump($pgsql_conn); var_dump( pg_last_error($pgsql_conn) ); ?> produces bool(false) Warning: pg_last_error(): supplied argument is not a valid PostgreSQL link resource in - on line 1 NULL ---- Manual Page -- http://www.php.net/manual/en/function.pg-last-error.php


« previous php.doc (#969371086) next »