PHP MySQL Count Function
You can use this function to quickly count number of records in table, just enter valid table in function argument, you can also directly echo it...
echo sqlcount("members"); //will return member count
echo sqlcount("members"); //will return member count eg 7077
function sqlcount($table){
$sql = mysql_query("SELECT COUNT(0) FROM $table;");
$sql = mysql_fetch_array($sql);
return $sql[0];
}