I have a task, where I must be able to get connected to a mysql table which is on a remote server. For ex. my php script is on A server and my mysql db table is on B server. Then I must be able to get connected from my script to that remote mysql server. Can anyone please help me in giving the code for this task.
Thanks in advance.
Ask your server administrator what the host name of the MySQL server is.
and then in your code change the server name to the given host name.
mysql_connect("mysql_host_name", "mysql_user", "******")
regards, Thomas A.