faqts : Computers : Programming : Languages : PHP : Common Problems : Debugging

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 7 people (29%) answered Yes
Recently 2 of 7 people (29%) answered Yes

Entry

What casues the error Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result

May 21st, 2004 13:03
Julio Nobrega, Debby Baker,


Usually this message appears when you have an error on your query.

Just use mysql_error():

$res = mysql_query($sql) or exit(mysql_error());

And it'll show you what's wrong with your query.