Well, Assuming you are using MySQL, You would want to query the DB to Select all the records that show an associated status, then count those records and assign the count to a variable. Then just echo the word and the variable.
As an example:
Code:
<?php
$query_Recordset1 = "SELECT * FROM users WHERE userstatus = 'A'";
$Recordset1 = mysql_query($query_Recordset1, <db connection variable here>) or die(mysql_error());
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
echo("Approved = ". $totalRows_Recordset1);
?>
This is a simplistic method, but effective
. You would probably want to put this through a while loop to reiterate it for every option, but that's a bit more complicated.
Bookmarks