I'm getting an error when trying to connect a php page to a mysql database -
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource
The php code is -
$cn=@mysql_connect("xxx.xxx.xxx.xxx","db_usr","password");
$db=@mysql_select_db("db_name",$cn);
Is this likely to be a connection problem, or a problem with mysql?
Apologies but I know very little about php or mysql!
Thanks
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource
The php code is -
$cn=@mysql_connect("xxx.xxx.xxx.xxx","db_usr","password");
$db=@mysql_select_db("db_name",$cn);
Is this likely to be a connection problem, or a problem with mysql?
Apologies but I know very little about php or mysql!
Thanks