seany123 Posted December 25, 2010 Share Posted December 25, 2010 can anyone tell me why im getting this error? Fatal error: Call to a member function fetchrow() on a non-object code being used..... $comment_query = mysql_query("SELECT * FROM `comments` where video_id='$video[0]' ORDER BY='desc' LIMIT='30'"); while($comments = $comment_query->fetchrow()) { Quote Link to comment Share on other sites More sharing options...
trq Posted December 26, 2010 Share Posted December 26, 2010 can anyone tell me why im getting this error? Because $comment_query is not an object. Taker another look at what mysql_query actually returns. Quote Link to comment 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.