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
Did you know?Explore Trending and Topic pages for more stories like this.
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

Problems with array
This code is the last lines in an upload script that uploads 4 images at the same time and writes th

Strange Oracle Query problem
Ok So I have this PHP class that talks to a Javascript class that basically creates a table of infor

Undefined offset when using a flat file with pipe symbols
Hi, I've got a flat file/text file which I'm currently using as a member database for my site (not a

Need help with basic sql
Hi,

I am using oracle 10g, and having some small doubts related to sql , here goes the si

Comparing MySql data and arrays.
I have a mysql table set up like this:
idsubjectbodyuseriddatetimetags1blog subjectblog body111|2

Help: problem with Headers to download PDF file
Hi,

I'm trying to implement a script where when a user clicks a link he gets a PDF file to op

Problem writing URL into database
How would I write this into the database?

<?php echo "http://".$_SERVER['SER

Vertical Alligning - Not working in 1 cell?
<?php

echo "<table id="valign" width="60%" style=

MVC - Code review
I'm in the process of trying to wrap my head around MVC, and as part of that, I'm attempting to impl

PHP5/Zend 2.0 - Resources
PHP5 Snapshots
http://snaps.php.net/

ZEND 2.0 Feature Overview and Design (PDF File

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