michelleqw
Programmer
Dear PHP users,
We have made a simple code what is working correctly local but on the internet it gives the next error message:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in / on line 18
Can someone tell us what us is going wrong????
code:
$db_link = mysql_connect("localhost", "root", " QQ") or die ("couldn't connect to MySQL\n");
mysql_select_db("QQ", $db_link) or die ("no selection\n");
$result = mysql_query("select * from tblcount", $db_link);
$values = mysql_fetch_array($result, MYSQL_ASSOC) ; <<<<line 18
Nice regeads,
Michelle
We have made a simple code what is working correctly local but on the internet it gives the next error message:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in / on line 18
Can someone tell us what us is going wrong????
code:
$db_link = mysql_connect("localhost", "root", " QQ") or die ("couldn't connect to MySQL\n");
mysql_select_db("QQ", $db_link) or die ("no selection\n");
$result = mysql_query("select * from tblcount", $db_link);
$values = mysql_fetch_array($result, MYSQL_ASSOC) ; <<<<line 18
Nice regeads,
Michelle