RE: [PHP-DB] Whats happening?!

From: Date: Thu, 14 Dec 2000 03:15:27 +0000
Subject: RE: [PHP-DB] Whats happening?!
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-5223@lists.php.net to get a copy of this message
in the fuction, globalize the database connection, that will resolve your issue. Unlike MySQL connections, PostgreSQL connections are not automatically available in functions. $database=pg_connect("whatever"); function Something() { global $database; } As far as integrating this into PHP like it is with MySQL.. would be nice. Dave -----Original Message----- From: Rasmus Resen Amossen [mailto:spunk@rhk.dk] Sent: Wednesday, December 13, 2000 8:31 PM To: php-db@lists.php.net Subject: [PHP-DB] Whats happening?! I'm having troubles with when I opens a PostgreSQL connection in two or more functions after another: It can't find it's ressouce and says: 1 is not a valid PostgreSQL link resource I can see that several others has submitted this bug, but all bugreports is marked as "Open". Is anyone working to fix that bug? -- Rasmus Resen Amossen | stud.mat.dat at the University of Copenhagen Jagtvej 120, 2. 239 | http://www.math.ku.dk/muh 2200 Kbh. N | http://w1.1444.telia.com/~u144400001 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#5223) next »