blueman378 Posted June 9, 2008 Share Posted June 9, 2008 hi guys any idea what would cause this error? Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/webspiri/public_html/forum/includes/functions.php on line 36 i have the exact same site running fine on my localhost but as soon as i update i get that error, the function in refers to is: function Return_Management($obj) { $query="SELECT * FROM forum_Management WHERE Name='$obj'"; $result=mysql_query($query); $Value = mysql_fetch_assoc($result); return $Value[Value]; } cheers, Link to comment https://forums.phpfreaks.com/topic/109363-error-on-upload/ Share on other sites More sharing options...
phpzone Posted June 9, 2008 Share Posted June 9, 2008 It most likely means your query failed. Perhaps you don't have the tables on the server it's erroring on. And, what is this line.. return $Value[Value]; You're Value without a $, is this really a 'define'd global? Link to comment https://forums.phpfreaks.com/topic/109363-error-on-upload/#findComment-560955 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.