MySQL db

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
cap2cap10
Forum Contributor
Posts: 158
Joined: Mon Apr 14, 2008 11:06 pm

MySQL db

Post 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:
cptnwinky
Forum Commoner
Posts: 84
Joined: Sat Dec 27, 2008 10:58 am
Location: Williamstown, MA

Re: MySQL db

Post 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.
Post Reply