易仿帝国yfdiguo.com

您当前的位置:首页 > 问题库

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

zcmcss发表于2017-12-11问题库
本文以实例演示帝国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]

热门问题

©2017 易仿帝国yfdiguo.com


友情链接: 阿里云优惠网| 阿里云推荐码| 阿里云教程| 莫愁博客|
♥ www.yfdiguo.com
联系作者QQ: