You will have a variable in the mysql_fetch_assoc() ie:

PHP Code: 
mysql_fetch_assoc($res
Then you will have a variable = to
PHP Code: 
$res mysql_query() 
So, add :
PHP Code: 
$res mysql_query() or die(mysql_error());