广

帝国cms教程

  • 帝国cms教程
  • 织梦CMS教程
  • PHP CMS教程
  • ECSHOP教程
  • WordPress教程
  • Discuz教程
  • CMS学习

    帝国CMS多表调用最新信息的方法

    2018-04-02 20:28:16 次阅读 稿源:互联网
    广告
    本文以实例演示帝国CMS多表调用最新信息的方法,该演示代码为调用默认数据表下全站最新10条图片信息,可根据需求添加附加条件,实现全站点击、全站头条、全站推荐等等。
    [e:loop={'select * from (
    select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_news where newstime union
    select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_photo where newstime union
    select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_flash where newstime union
    select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_article where newstime) a order by newstime desc limit 10',10,24,1}]
    [/e:loop]

    一起学吧部分文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与一起学吧进行文章共享合作。

    广告
    广告
    广告