You will have a variable in the mysql_fetch_assoc() ie:
mysql_fetch_assoc($res)
Then you will have a variable = to $res = mysql_query()
So, add :
$res = mysql_query() or die(mysql_error());
There's a error running the query. Probably missing a table. Add:
or die(mysql_error());
To your query on the line you're getting the error from
Then see what error you get
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.