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

Need help adding a timestamp to my filename/variable
Hello,

I'm kind of stupid when it comes to php and I need a tiny bit of help. I've got a f

Loop column after 2 results
Hello All.

Here is what I have:

Client ID Company name Clien

PHP Code To Change Font Color in Table Cell
I would appreciate help with the following snippet of my php code. I am just trying to change the f

Problem with variable declaration in switch statement
Hello, I am having some trouble assigning a value to a variable inside a switch statement. What I a

output printing as hexadecmal... XD
Everything works except the calcem call for the totusold and totuprice. The out put shows up as hex.

Creating a custom API
I'm creating a site, and I need to create a basic API. Unfortunately I have no idea where to start.

Displaying image pathname instead of image
Hello

Im trying to upload and then display images from a mysql database - Its only basic and

moving mouse to display image coordinates
I have an existing MFC application that shows an image in the main window.
I'd like to be able to

preg_match logical error
Code: <?php
$s = file_get_contents("page.html");
preg_match('/<div cla

Data Function is Its Not working IN IE8
This is my first time to use formums. I hope i can get solution for this problem. view plaincopy to

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