Say I have a table of users, with one column being their gender.
This counts the total number of users:
$num_users = mysql_fetch_row(mysql_query("SELECT COUNT(*) FROM users"));
And the number of users ends up as $num_users[0].
How would I use a similar query to get the number of male users and number of female users.
The column is called gender and the value is always either 'm' or 'f'.