RE: [PHP-DB] Whats happening?!
| From: | Dave VanAuken | Date: | Thu, 14 Dec 2000 12:42:16 +0000 |
| Subject: | RE: [PHP-DB] Whats happening?! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-5241@lists.php.net to get a copy of this message | ||
Have seen quite a few examples where the connection variable was not passed
nor globalized for MySQL connections... figured that PHP maintained or
automaticaly globalized the MySQL connection. Have had to make that change
to use the code with postgreSQL (with little other changes) thus the
presumption.
Have no problems with MySQl other than its lack of transactions and rollback
(which are forthcoming I hear)... it is just easier to use one database for
all to avoid recoding functions and classes.
Appreciate the clarification.
Dave
-----Original Message-----
From: Chris [mailto:csmith@squiz.net]
Sent: Wednesday, December 13, 2000 10:14 PM
To: php-db@lists.php.net
Subject: RE: [PHP-DB] Whats happening?!
>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
--
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