Hi I am having problems using php and could do with someone showing me the way all I want to do is set a variable with php and then echo it in the exp call, I actually want to set a variable then get it incremented each time a new entry is used but need to get it working to start off with. In the original template this works and when I run it through EE it doesnt any idea or pointers please
<br />
<?php<br />
$categorycount = 0;<br />
?><br />
<table><tr><br />
{exp:query sql="SELECT count( exp_category_posts.entry_id ) AS count,<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})(<?php echo $categorycount; ?>)</td><br />
{/exp:query}<br />
</tr></table> <br />
many thanks adan