I wrote this piece of code to pull out the count of users(rtnUser) subscribed to a class(CDID)...
However, I get a count of '0'... I'm not sure if I have the variables reading correctly... I second set of eyes would be great...
<?php
$cdid = $row_rtnUser['CDID'];
$sql = "SELECT COUNT(CDID) AS total FROM rtnUser GROUP BY CDID";
$query = mysql_query($sql);
$recordset = mysql_fetch_assoc($query);
$count = $recordset["total"];
echo "$count";
?>
Ted