Page 1 of 1

MySQL db

Posted: Sat Dec 27, 2008 2:36 pm
by cap2cap10
ok, php technorati, I need server information! :banghead: This may seem simple, but how do I access a database with a static IP address that is not on the same hosting server of my website, using mysql code? Any takers?

Thanks in advance!


Batoe
Happy Holidays!!! :drunk:

Re: MySQL db

Posted: Sat Dec 27, 2008 2:40 pm
by cptnwinky
Its actually very simple as long as the remote mysql server allows remote connections.

Code: Select all

 
mysql_connect($ip, $user, $pass);
 
Where $ip equals the static IP you have been given for the server.