You need to extract the value from the resource. $res is an array, even when there's only one array member: that's just how resultsets get returned. So $res actually represents
$count => 'your answer'
...and not 'your answer'. Try something like:
$answer = mysql_result($res,0,0);
Dan
|