|
内容页调用代码(记得更改数据表的前缀):
{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}
首页、列表页调用代码(用于list、artlist标签中)
[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, |
|