Hi, I'm new to using SQL with PHP. I'm trying to connect to a database located on a remote server. I'm working on a Mac book and using MAMP I've connected to a SQL database using the following command:
mysql_connect ('localhost:1558', 'root', 'root'))
My question is if I have I a SQL database provided by my web service provider, shouldn't I be able to replace 'localhost:1558' with the appropriate ip address so that I am able to connect to the remote data, i.e.
xxx.xxx.xxx.xx:1558 and then replace the 2 roots with my username and password.
Thanks,
Michael
mysql_connect ('localhost:1558', 'root', 'root'))
My question is if I have I a SQL database provided by my web service provider, shouldn't I be able to replace 'localhost:1558' with the appropriate ip address so that I am able to connect to the remote data, i.e.
xxx.xxx.xxx.xx:1558 and then replace the 2 roots with my username and password.
Thanks,
Michael