Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource? I am getting this error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource (line 34)
This was working fine, until I refreshed a page and it just decided not to work, I havent even opened the file. No idea where it came from.
Here is the code:
$querycname = mysql_query("SELECT `customers_firstname` FROM '".$tbl_name."' WHERE `customers_email_address` = '".mysql_real_escape_string($cusername)."'");
while ($row = mysql_fetch_array($querycname)) {
$user_id = $row[0];
}
Apparently something is wrong here, can anyone tell me what it is, like I said it was fine until just moments ago.
Thanks |