Cake won't do anything to queries you run in custom classes.  One thing
to watch out for with MySQL connections, however, is that if you're
connecting to two different databases on the same server, PHP will try
to use the same connection resource for both, which results in one
connection overwriting the other.

To get around this, you must use mysql_connect (rather than _pconnect)
for both connections, and you must add "persistent" => true in your
database config, and pass true to the $new_link parameter of
mysql_connect in your custom class.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to