Hey I have a small issue with counting number of rows based on the row name, currently I use this query
$query = mysql_query("SELECT usermail FROM invites WHERE invitename = 'joost'");
$pending = mysql_num_rows($query);
But I have like 8 different invite names, which equals 8 different queries.
So my question is if there is some way that I can turn those 8 queries in to one, and still get the number of rows for each name ?
Thanks in advance