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! 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()); 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 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 Link to comment https://forums.phpfreaks.com/topic/71858-mysql_fetch_assoc-problem/#findComment-361953 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.