Possible Duplicate:
How do i “echo” a “Resource id #6” from a MySql response in PHP?
I have a statement:
$query1 = mysql_query("SELECT COUNT(author) FROM userpages WHERE `author` = '" . $userid . "'") or die();
echo $query1;
Ignore the amazingly awful naming convention their, its just for testing it before i beef it up. Because im not actually getting data from the table i should just be able to echo the statement shouldnt i? However its giving me an error.
The error is: Resource id #4
Any advice?
Thanks.