Anyone know if there's a better approach than doing
simply want a count of the rows really and don't need anything returned.Code:$query = "SELECT COUNT(name) FROM members"; $result = mysql_query($query) or die(mysql_error());
oh oh oh ... is it possible to do a sort of "COUNT" "WHERE" thing to only count records matching a criteria?




Reply With Quote