mindapolis Posted April 29, 2011 Share Posted April 29, 2011 Hi, can someone tell me what this error message means? Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/103/mthomas/public_html/cins258/project/testimony.phtml on line 18 Quote Link to comment https://forums.phpfreaks.com/topic/235095-error-meaning/ Share on other sites More sharing options...
PFMaBiSmAd Posted April 29, 2011 Share Posted April 29, 2011 If you search for that error message, it generally means that your query failed due to an error of some kind and you would generally use mysql_error() to find out why. It can also mean that you used the wrong variable name in the mysql_fetch_assoc() statement or that you overwrote the variable that was holding the result resource from the query. Quote Link to comment https://forums.phpfreaks.com/topic/235095-error-meaning/#findComment-1208215 Share on other sites More sharing options...
Maq Posted April 29, 2011 Share Posted April 29, 2011 The error itself is pretty self explanatory but this usually means that your query is failing which will return FALSE and is not a valid resource. Quote Link to comment https://forums.phpfreaks.com/topic/235095-error-meaning/#findComment-1208216 Share on other sites More sharing options...
PFMaBiSmAd Posted April 29, 2011 Share Posted April 29, 2011 LOL, and if you want help with why you code is producing that error, you would need to post your code starting with the sql statement through to the end of any loop that is retrieving the result from the query. Quote Link to comment https://forums.phpfreaks.com/topic/235095-error-meaning/#findComment-1208218 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.