hi, thanks flyier for the link..
i have tried it using the query below.
SELECT cc.categoryid, cc.name, COUNT( * )
FROM classified_category cc, classified c
WHERE cc.categoryid = c.categoryid
GROUP BY name, categoryid
using phpmyadmin, i query this and get the result as below,
categoryid name count(*)
1 vacancy 10
2 sell 15
how i can display the 'count' values using php?