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

problem in program for counting no of chars using pointers
Hi all, I was trying to make a program which counts number of chars in a string using concpt of poin

How to have a log of all the status a VIM document had been ?
Hi guys,

I’m using SAP Invoice Management plugin and the /OPT/VIM_ANALYTICS transa

rename the file
File.txt

Code: ***DOCUMENT***
..DN:
000044255
..CB:
..SN:
..PY:
2009
..E

Using insert variable
need a way to inert variable data to mysql database

$acc = "212121212";
$nok =

How to calculate days from variable date?
This will be easy for one of you gurus. I want to fetch the date from a variable date, for example:<

Having Problem with Date
l have a submit buttom where user have the possibility to add a date to specify when his message s

Taylor Series Function
So I am working a a project for my intro C++ class, and I am having some trouble with a function for

SHOW TABLES Help
Hi all

I have the following

Code: [Select]<?php
$sql = "SHOW TABLES&quo

What's wrong with my code
sobbing for many days, still don't know why please Help. Why my page isn't posted correctly. In a

convert PHP array to Javascript array
I have a page that gets a request sent from AJAX, and I am trying to convert a PHP array to a javasc

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