帝国CMS模板调用最新最多评论文章的方法
2022-05-30
码如下:
[e:loop={'select * from [!db.pre!]ecms_news where checked=1 order by plnum desc,id desc limit 8',10,24,0}]
<li> <small><a href="<?=$bqsr[titleurl]?>" class="title"><?=sub($bqr[title],0,30,false)?></a></small>
<p><?=$bqr[smalltext]?></p>
</li>
[/e:loop] 声明:本文来自用户分享和网络收集,仅供学习与参考,测试请备份。