mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in php [duplicate]

That’s slightly confusing, since this sort of thing is usually caused by an SQL error, however the line ..or die(mysql_error()); should have picked that up. Check the contents of your loop that you’re not overwriting the $result variable.

Leave a Comment