note 9908 deleted from pg_exec by ronabop

From: Date: Wed, 06 Dec 2000 06:14:38 +0000
Subject: note 9908 deleted from pg_exec by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-8453@lists.php.net to get a copy of this message
I recommend using a database connection object, not simply an included file, to call pg_exec. The reason is that pg_exec(), at least when called by a user function inside an included file, fails in v4.0.3 with, eg, "Warning: 1 is not a valid PostgreSQL link resource in sql.inc.php on line 92." The same user function, when converted to a method, works fine. (This is with an explicit pg_close after the first connection and a unset of its result id and lots of other unhelpful troubleshooting.)

« previous php.notes (#8453) next »