萬盛學電腦網

 萬盛學電腦網 >> CMS教程 >> DEDECMS列表與內頁調用此文章被收藏次數的調用標簽

DEDECMS列表與內頁調用此文章被收藏次數的調用標簽

class="area"> dedecms列表與內頁調用此文章被收藏次數的調用標簽

被收藏次數標簽:

1.列表調用標簽:

[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]

2.內頁調用標簽:

{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}次DEDE列表與內頁調用此文章被收藏次數的調用標簽
copyright © 萬盛學電腦網 all rights reserved