PHPCMS v9栏目文章数量统计调取
{pc:get sql="SELECT COUNT(*) AS count,title,updatetime FROM v9_news WHERE catid=$catid"}{loop $data $k $v}{$v[count]}{/loop}
v9_news 更换自己的数据表名 catid=$catid" cid字段
{pc:get sql="SELECT COUNT(*) AS count,title,updatetime FROM v9_news WHERE catid=$catid"}{loop $data $k $v}{$v[count]}{/loop}