<small>{dede:field.id runphp='yes'}$dsql = new dedesql(false);$dsql -> SetQuery("Select count(id) as c from dede_feedback where aid=".@me);$row = $dsql -> getone();@me=$row['c'];{/dede:field.id}</small>个评论 </a>
复制代码
2、内容页调用收藏数:
<a herf="http://bbs.piaoxian.net" title="站长论坛">
被收藏:{dede:field.id runphp='yes'}$dsql = new dedesql();$dsql -> SetQuery("select count(*) as c from dede_member_stow where aid=".@me);$row = $dsql -> getone();@me=$row['c'];{/dede:field.id}次</a>
复制代码
3、列表页调用评论数:
<a herf="http://bbs.piaoxian.net" title="站长论坛">
[field:ID runphp='yes']$dsql = new dedesql(false);$dsql -> SetQuery("Select count(id) as c from dede_feedback where aid=".@me);$row = $dsql -> getone();@me=$row['c'];[/field:ID]个评论</a>
复制代码
4、列表页调用收藏数
查看源码打印代码帮助
<a herf="http://bbs.piaoxian.net" title="站长论坛">
被收藏:[field:ID runphp='yes']$dsql = new dedesql();$dsql -> SetQuery("select count(*) as c from dede_member_stow where aid=".@me);$row = $dsql -> getone();@me=$row['c'];[/field:ID]次</a>