Thanks guys. Now I'm having trouble accessing individual counts.
I want to use php to display the count for each category. I tried the following, but it doesn't do what I want
----------------begin--------------------
$query = "select catid, count(*) from music.post group by catid";
$result = mysql_db_query($db,$query,$connection) or die("Cannot run query");
mysql_close ($connection);
$cat_count = mysql_fetch_array($result);
-----------------end------------------
Next I tried accessing the counts like this:
$cat_count[0]; $cat_count[1]; $cat_count[2]; etc, but the result it displays is wrong.
Any ideas? Thanks.
Richie.