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


本文整理自网络,侵删。

本文实例讲述了帝国CMS多表调用最新信息的方法。分享给大家供大家参考。具体实现方法如下:


代码如下:
[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]
帝国CMS多表调用最新信息,该演示代码为默认数据表下全站最新10条图片信息,自己根据需求可以附加条件,实现全站点击,全站头条,全站推荐等等.

希望本文所述对大家的帝国CMS建站有所帮助。


标签:帝国CMS

相关阅读 >>

gta5 pc版破解补丁失效怎么回事 补丁失效解决方法介绍

帝国CMS用户前台投稿上传图片自动加水印的实现方法

phpcms图片频道模板制作

帝国CMS调用购物车商品数量和总价的方法

帝国CMS会员登陆赠送积分的实现方法

帝国CMS灵动标签php代码实现标签无限嵌套的效果

帝国CMS整合千脑网盘的方法

帝国CMS获取当前栏目下子栏目的方法

帝国CMS如何通过灵动标签调用日期时间的方法

帝国CMS中robots文件用法

更多相关阅读请进入《帝国CMS》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...