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

  • A+
所属分类:帝国cms技巧

内容摘要

[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
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin

发表评论

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