mohsen57 — 2010-03-28T09:14:47-04:00 — #1
I have 2 domains in my server. Each of domains have 1 mysql db:
mysite1.com --> db1
mysite2.com --> db2
How can I connect to db2 from mysite1.com in php?
below code dose not work:
$conn = mysql_connect('localhost','user_of_db2','password');
jeremy_ross — 2010-03-28T09:20:01-04:00 — #2
What is the error message you receive?
mohsen57 — 2010-03-28T09:57:30-04:00 — #3
My issue was solved:
$conn = mysql_connect('IP ADDRESS','user_of_db2','password');