Support
Database
How do I connect to another database on another
server from my PHP script?
A
connection is made to a database with the usual
statement:
mysql_connect('localhost','USERNAME','PASSWORD');
Where
‘localhost’ is the database on the same web
server as the PHP script.
If
you want to connect to a database to another
web server you would replace localhost’ to that
of the IP address of the web server.
The
web server where a database resides can be found
at the bottom of the Domainscape control panel.