How can I track only the amount of Administrators from a Database that looks like this:
table: users
username title
Glenn Administrator
Peter New Member
I want to only track the number of Administrators in the database. Here is the code that I am using but I think its missing some code. Here is the code:
// Count number of users
$result = mysql_query("SELECT title FROM users WHERE Administrator");
$users_count = mysql_num_rows($result);
// Display the results
echo $users_count;
I think the WHERE is suppose to be wrong. How can I track only the amount count of Administrators where the table is users and the row is title?