Online Support from Domainscape

 

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.

 

Return to category list

 

 

 

Every attempt has been made to ensure that all information, opinions and guidance notes are accurate, comprehensive, verified and complete.

We accept no liability whatsoever for any perceived inaccuracy or incompleteness of the information contained in the Web Site or for any reliance placed by any person on the information.

 

Copyright ©2008
Domainscape Internet
All rights reserved