Hi,
I have a small script that connect to the mysql server which is installed in local host. This is my code,
mysql_connect("localHost","<userName>","<password>") or die ("Error connecting to mySQL Server");
mysql_select_db("<db name>") or die ("Could not select database: ");
print "Connection success!!!!!!";
This is simply print "Connection success!!!!!!" if the connection is ok..
This has no error its works fine.. But my problem is i need to access this mysql server from another server. (Basically from another web site)
becasue my application is running on a different server and my database is reside in a different server.
so i remove locahost and replece it with with the domain name such as ,
mysql_connect("www.whatever.com","<userName>","<password>") or die ("Error connecting to mySQL Server");
But it says "Error connecting to mySQL Server" !!!
whats worng with my code... can i access the server like this??? if not how???
need a speedy reply....
regards,
niroshan