hi i was wondering if anyone can help me with an error in my php website?the whole site works fine except this one error.Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home2/test/public_html/test/dl/index.php on line 14 its a download site thanks...
generally this meens your query has failed. without seeing any code, i cant really be any more help.
Since it's just a warning, put a @ in front of the function, like this:
@mysql_fetch_row($whatever);
That will silence all warnings. This will solve your problem if the script is running fine and just showing a warning.
Putting an @ in front of it will indeed suppress the warning, but everything after that line dealing with the mysql_fetch_row will be using invalid input. It may work, but it might be best to fix the query or remove it entirely, if it isn't contributing any data.