本人整理收藏灵动标签调用

本人整理收藏灵动标签调用

灵动标签统计某表数据:
[e:loop={"select count(*) as title from [!db.pre!]ecms_info where ismember=1 and checked=1",1,24,0}]
总数:<font color="red"><?=$bqr[title]?></font>[/e:loop]条
某表某栏目统计:
[e:loop={"select count(*) as title from [!db.pre!]ecms_info where ismember=1 and checked=1 and classid=20",1,24,0}]
总数:<font color="red"><?=$bqr[title]?></font>[/e:loop]条
调用会员总数:
[e:loop={"select count(*) as title from [!db.pre!]enewsmember where checked=1",1,24,0}]
总数:<font color="red"><?=$bqr[title]?></font>[/e:loop]个
......

自己站里用到的 友情连接调用

[e:loop={'select * from [!db.pre!]enewslink where checked=1 order by lid desc limit 7',20,24,0}]

<TD><a href="<?=$bqr[lurl]?>"><?=$bqr[lname]?></a></TD>
[/e:loop]

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据