bootes Posted October 19, 2009 Share Posted October 19, 2009 New to php/mysql coding. What's wrong with this sequence, or am I just not seeing to obvious? Getting, "Call to undefined function mysql_fetch_accoc()" at line n, where line n is referring to '$row2 = mysql_fetch_accoc($eresult);' Thank you... if ... $equery = "SELECT * FROM MemberEq WHERE memberid = '$memberid'"; $eresult = mysql_query($equery) or die('Error: ' . mysql_error()); $query = "SELECT * FROM NewMembers WHERE memberid = '$memberid'"; $result = mysql_query($query) or die('Error: ' . mysql_error()); if(mysql_num_rows($result) == 0) { echo "This user does not exist!"; echo "<br />"; echo "<a href=new_main.php><b>Return to Main Menu</b></a>"; echo "<br />"; die(); } else { $row = mysql_fetch_assoc($result); $row2 = mysql_fetch_accoc($eresult); Quote Link to comment https://forums.phpfreaks.com/topic/178170-call-to-undefined-function-mysql_fetch_accoc/ Share on other sites More sharing options...
Alex Posted October 19, 2009 Share Posted October 19, 2009 You have a typo, it's mysql_fetch_assoc(), not mysql_fetch_accoc() Quote Link to comment https://forums.phpfreaks.com/topic/178170-call-to-undefined-function-mysql_fetch_accoc/#findComment-939442 Share on other sites More sharing options...
bootes Posted October 19, 2009 Author Share Posted October 19, 2009 Thank you...late nights! sinus headaches.... Quote Link to comment https://forums.phpfreaks.com/topic/178170-call-to-undefined-function-mysql_fetch_accoc/#findComment-939456 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.