php-db | 2000121
Date: 12/14/00
- Next message: Guridi, Jose: "[PHP-DB] RE: trange behavior of varchar2 in oracle"
- Previous message: Zhou Hao: "[PHP-DB] query no longer than 5 minutes?"
- In reply to: Chris: "RE: [PHP-DB] Whats happening?!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>]
Sent: Wednesday, December 13, 2000 10:14 PM
To: php-db <email protected>
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 <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Guridi, Jose: "[PHP-DB] RE: trange behavior of varchar2 in oracle"
- Previous message: Zhou Hao: "[PHP-DB] query no longer than 5 minutes?"
- In reply to: Chris: "RE: [PHP-DB] Whats happening?!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

