like I can use mysql_numrows() to count the total number of records returned by my select statement, but how can I get a conditional inside to get a number of records where in this case number=0.
//this is fine
echo ("total records returned: " . mysql_num_rows($result) . "<br>");
// but I want something like
echo ("total number of records where number=0: " . mysql_num_rows(...where the value of the second field is 0...) . "<br>");