Hi I have some code that I have been using from the forum, ive mixed together the create a table with the categories and amount sql. Its great it all works 4 folders across and as many down as needed. I have many categories but these are spilt into groups I wondered if I could use the {category_group} =2 somehow in the script below I’ve tried a couple of ways but it wasnt happy any help greatly appreciated many thanks adam
<br />
<table><tr><br />
{exp:query sql="SELECT count( exp_category_posts.entry_id ) AS count_1,<br />
exp_category_posts.cat_id, exp_categories.cat_name<br />
FROM exp_categories, exp_category_posts<br />
WHERE exp_category_posts.cat_id = exp_categories.cat_id<br />
GROUP BY exp_categories.cat_name"}<br />
<td width=169 height=93 valign=top><a href="http://{path=intelart/category}C{cat_id}/">http://www.ummedia.com/MY_SITES/fatlava/Resources/suitcase.gif</a><br />
{cat_name} ({count_1})</td><br />
{if {count} == “4”}</tr><tr>{/if}<br />
{if {count} == “8”}</tr><tr>{/if}<br />
{if {count} == “12”}</tr><tr>{/if}<br />
{if {count} == “16”}</tr><tr>{/if} <br />
{if {count} == “20”}</tr><tr>{/if}<br />
{if {count} == “24”}</tr><tr>{/if}<br />
{if {count} == “28”}</tr><tr>{/if}<br />
{if {count} == “32”}</tr><tr>{/if} <br />
{/exp:query}<br />
</tr></table> <br />