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 search form numerical "between" sending by php
I am trying to display the results of a search, on a sql database, on a web page. I set up html &quo

Not Inserting into DB
I can't get my Add new Division form to submit to the database. Anyone see my issue?

Code: &a

Just wondering what you think about my site
I am new to phpfreaks i just seen this form and thought it would be cool to see what other thought a

Help with forum quoting?
Hi im working on a forum and I have alomost finished it but i want a user quote system like twitter

Php Mysql Page Loading Notice
Hi all,

I was wondering if there is a way (Sure there is) of showing a message or an image wh

Multiple PHP errors when clicking a link..and..removing a ghost..
Hi - I have 2 problems with a new website - homeswapvacations.com, which I need help solving.

column name cancatenation within PL/SQL
I have a PLSQL store procedure, and the following statement is part of a subquery
fname||lnam

MS Exchange 2007 integration with ECC 6.0
Hello Experts,
We have ECC 6.0 and MS Exchange 2007. We need to integrate ECC 6 and MS Excha

problem with php mysql query
Hi guy's...

I'm totally lost here..because don't have any idea how to make a query for grab r

insert quotes
Hi,

I have an output like this:
Code: john,18,Cancer
How can I change this to
Code:

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