Re: [PHP-WIN] 2 sites accessing 1 db - problem

2004-11-09 Thread Sudeep
Hi George, You might want to setup database previleges to access db from the other site(other site is the one where your files are stored). So instead of localhost you need to give the ip address if the server where the db is hosted. Hope u understand this. ...Sudeep George Pitcher

RE: [PHP-WIN] 2 sites accessing 1 db - problem

2004-11-07 Thread Svensson, B.A.T. (HKG)
Does MySQL allow remote and/or local connections to the system? Each MySQL user has security checks on weather it is allowed to do local respectively remote connections. -Original Message- From: George Pitcher To: [EMAIL PROTECTED] Sent: 5-11-2004 15:33 Subject: [PHP-WIN] 2 sites

[PHP-WIN] 2 sites accessing 1 db - problem

2004-11-05 Thread George Pitcher
Hi, I have a master database and a customer-facing website and a staff-facing website - both connecting to the same database. I use Smarty and PEAR::DB and PHP5. I have no problem connecting from one site, but the other just generates 'could not open database' on the home page. This is happening