note 59254 deleted from function.pg-last-error by nlopess

From: Date: Wed, 30 Nov 2005 18:58:35 +0000
Subject: note 59254 deleted from function.pg-last-error by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-99380@lists.php.net to get a copy of this message
Note Submitter: Cvbge Reason: added to the manual ---- 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

« previous php.notes (#99380) next »