POST TIME:2021-05-22 23:50
織夢(mèng)DEDECMS列表頁和文章頁調(diào)用評(píng)論數(shù)和收藏?cái)?shù)
1.文章頁調(diào)用評(píng)論數(shù)
<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>個(gè)評(píng)論 |
2.文章頁調(diào)用收藏?cái)?shù)
被收藏:{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}次 |
3.列表頁調(diào)用評(píng)論數(shù)
[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]個(gè)評(píng)論 |
4.列表頁調(diào)用收藏?cái)?shù)
被收藏:[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]次 |