note 9908 added to pg_exec

From: Date: Thu, 30 Nov 2000 17:05:23 +0000
Subject: note 9908 added to pg_exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-8299@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.) http://www.php.net/manual/function.pg-exec.php

« previous php.notes (#8299) next »