Re: querying more than one db from a php page?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



George Pitcher wrote:

Hi,

I am developing my main site to run on php/mysql (currently
lasso/filemaker).

I am also developing some individual sites to be hosted on the same server
as my main one and I'd like to be able to update those smaller site
databases when activity happens on the main site.

I'm still a couple of months away from tackling that part but can anyone
predict trouble ahead, and if so, any remedies?

MTIA

George in Oxford/Edinburgh

Well, if you use the DB functions directly, you:
1) limit yourself to the use of a single database system.
2) will have to manually select your db every time you change databases within one script.


I would highly suggest using a DB abstraction class, such as PEAR::DB. http://pear.php.net/package/DB

--
paperCrane <Justin Patrin>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux