0

I am using mysql_fetch_assoc to retrieve and display an array; This is what I recieve upon loading the page:

Warning: mysql_fetch_assoc() expects parameter 1 to be resource

I have researched it and do not understand it.

**Snippet*

while ($row = mysql_fetch_assoc('$result')) {
echo $row["emp_name"];
echo $row["emp address"];
}

Thank you,
Matthew

3
Contributors
4
Replies
9
Views
3 Years
Discussion Span
Last Post by mattyd
0

Wait. Doing something wrong in other areas of code I think. Will reply after making adjustments.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.