帝国cms 随机调用某个栏目或者当前栏目的文章

admin 2024年1月14日17:23:55帝国cms技巧评论1,182 次浏览阅读模式

内容摘要

[e:loop={"select * from [!db.pre!]ecms_news where classid='$GLOBALS[navclassid]' order by rand() desc limit 10",12,24,0,'','newstime DESC&#3

文章正文

[e:loop={"select * from [!db.pre!]ecms_news where classid='$GLOBALS[navclassid]' order by rand() desc limit 10",12,24,0,'','newstime DESC'}]                         <li>                            <a href="<?=$bqsr['titleurl']?>" rel="bookmark" title="<?=$bqr['title']?>"><?=$bqr['title']?></a>                        </li>                         [/e:loop]

代码注释

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2024年1月14日17:23:55
  • 转载请务必保留本文链接:https://anyun.org/a/webtips/ecmstips/2024/0114/18172.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: