Does anyone know if there is an easy way to connect to a database that is outside the server?
In other words, I have a mySQL database on server #1 that I can access just fine with PHP, on several domains that use that server. But I also want to call that database from server #2 and display the database content. Obviously using "localhost" in the mysql_connect statement as the host name isn't going to work here. Is it possible to use a domain name for the host name (and if so, how would I go about finding the mySQL URL on a commercial web host)? Or is there another function or method I can use to access these files? I know I can do it with frames but thought there might be a way to do it without them. Any thoughts would be greatly appreciated.
Susan
In other words, I have a mySQL database on server #1 that I can access just fine with PHP, on several domains that use that server. But I also want to call that database from server #2 and display the database content. Obviously using "localhost" in the mysql_connect statement as the host name isn't going to work here. Is it possible to use a domain name for the host name (and if so, how would I go about finding the mySQL URL on a commercial web host)? Or is there another function or method I can use to access these files? I know I can do it with frames but thought there might be a way to do it without them. Any thoughts would be greatly appreciated.
Susan