I want to get the number of rows in my MySQL table and store that number in a php variable. This is the code I'm using:
$size = @mysql_query("SELECT COUNT(*) FROM News");
$size ends up being "Resource ID #7." How do I put the number of rows directly into $size?