<?PHP
include("connect.php");
$strSQL = "select Ssmno,count(UserID) as total from member group by Ssmno;";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
while($objResult = mysql_fetch_array($objQuery))
{
echo $objResult["total"];
}
include("connect.php");
$strSQL = "select Ssmno,count(UserID) as total from member group by Ssmno;";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
while($objResult = mysql_fetch_array($objQuery))
{
echo $objResult["Ssmno"] ."=". $objResult["total"]."<br>";
}