Re: querying more than one db from a php page?
| From: | Justin Patrin | Date: | Fri, 12 Dec 2003 16:26:27 +0000 |
| Subject: | Re: querying more than one db from a php page? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-22374@lists.php.net to get a copy of this message | ||
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/EdinburghWell, 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>