Hi,
Im trying to connect to a database on a server but i end up getting these errors:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'mydb.somehosting.com' (10060) in C:\xampp\htdocs\www\db_test.php on line 12
Could not connect: Can't connect to MySQL server on 'mydb.somehosting.com' (10060)
The script is valid and works (just not when i run the script from localhost), and here it is:
$link = mysql_connect("mydb.somehosting.com", "user", "mypassword") or die("Could not connect: " . mysql_error());
mysql_selectdb("db",$link) or die ("Can\'t use db: " . mysql_error());
Btw i disabled my firewall, my antivirus, still no good.
How can i resove this issue?