Based on the code earlier on this post, I am trying to get the total count of members. Unfortunately, I get it repeated 1 member(s) john doe, 2 member(s) jane doe etc... how can I just echo the total members only and list them separately, like:
total members: (2) john doe, jane doe
$c=0;
while($row = mysql_fetch_array($result))
{
$username = $row['username'];
if($username!="a timecode user")
{
$d++;
}
echo "<b><font face=arial size=1>".$d." member(s): <a href=http://$username.sites.com>$username</a>,</font></b> ";
if($username=="a timecode user")
{
$c++;
}
}
if ($c==0 and $username=="")
echo "<b><font face=arial size=1>store hours are: Mon-Thu 9:00 AM to Midnight, Fri-Sat 9:00 AM - 2:00 AM; Sun 10:00 AM -
10:00 PM<br> there are no members</font> </b>";
if ($c==0)
echo ("<b><font face=arial size=1>and there are no timecode users.</font></b>");
if ($c>=1)
echo "<b><font face=arial size=1>and ".$c." timecode user(s).</font></b>";
mysql_free_result($result);
?>
Thank you.