cawafc Posted October 4, 2007 Share Posted October 4, 2007 Hi, I have just done a tutorial using this function, it works on my web server, but when running locally on my pc it does not (I'm using XAMPP with php v 5) i get this problem: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in: (file name and line) Any help would be great! Quote Link to comment https://forums.phpfreaks.com/topic/71858-mysql_fetch_assoc-problem/ Share on other sites More sharing options...
MmmVomit Posted October 4, 2007 Share Posted October 4, 2007 Find the line where you run mysql_query, and rewrite it like this. $resource = mysql_query($your_query_goes_here) or die(mysql_error()); Quote Link to comment https://forums.phpfreaks.com/topic/71858-mysql_fetch_assoc-problem/#findComment-361948 Share on other sites More sharing options...
cawafc Posted October 4, 2007 Author Share Posted October 4, 2007 cheers. found the problem now Quote Link to comment https://forums.phpfreaks.com/topic/71858-mysql_fetch_assoc-problem/#findComment-361952 Share on other sites More sharing options...
darkfreaks Posted October 4, 2007 Share Posted October 4, 2007 be sure to hit solved Quote Link to comment https://forums.phpfreaks.com/topic/71858-mysql_fetch_assoc-problem/#findComment-361953 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.