RE: [PHP-DB] Whats happening?!

From: Date: Thu, 14 Dec 2000 03:13:57 +0000
Subject: RE: [PHP-DB] Whats happening?!
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-5224@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.
That's incorrect. I use mysql at work, and I still have to globalise a connection string to use it in a function.
As far as integrating this into PHP like it is with MySQL.. would be nice.
I prefer the mysql functions, they're a bit easier to use over the postgresql functions in php. Slight code changes, but it's annoying. ------------------------ Chris Smith http://www.squiz.net

« previous php.db (#5224) next »