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
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
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