Call to undefined function mysql_fetch_accoc()


Posted on 16th Feb 2014 07:03 pm by admin

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...

Code: [Select]
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);

No comments posted yet

Your Answer:

Login to answer
124 Like 36 Dislike
Previous forums Next forums
Other forums

Help building / using array
First - this is a cross-posting, if this is wrong I apologise! What started out as a MySQL query que

close site for maintenance
i get a tutorial, saying the following code can put our site offline, and only the developer can vie

Problem with a select distinct
I have a problema with a select distinct, I have the next sql:

select distinct a,b,c,d fr

Unique Visitor Tracking
Hello. Currently, I run a voting site where voters are tracked by their IP address and can only vote

How to replace search button with link?
hi to everbody.
i have a search submit form and button like this :

<form id="f

Linkage between two scripts
Okay say I have this for a link in a script:

Code: <li><a href="#&q

Dynamic Array using glob?
Is there an easier way to do this?

I am trying to get create a dyamic array based on files wi

Images in email problem
I found this script for sending emails, it works but if the email has <img src="image.jp

Help, Base64 encoding url and decoding server side.
Hello everyone, i have a website with videos and games and also provide an embed code which people c

help with php
It's not displaying or pulling anything out of the database.


Code: <html><

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash