帝国CMS灵动标签调用多表多模型调用文章的方法


本文整理自网络,侵删。

灵动标签调用多表多模型调用文章

1、调用多模型的最新文章

[e:loop={'select * from (
select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_movie where newstime union
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}]
<a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> <br>
[/e:loop]

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

阅读剩余部分

相关阅读 >>

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

帝国CMS模板开发常用技巧总结

帝国CMS 解决后台登录次数不得超过5次限制的方法

帝国CMS调用新浪iplookup实现根据ip跳转到不同域名

cf枪王排位第三季的奖励领取方法介绍

帝国CMS后台风格样式修改方法

帝国CMS内容页分割图集图片大图小图输出真实地址的实现方法

帝国CMS用户提交信息反馈发送至邮箱代码

帝国CMS使用中常见的英文错误提示介绍与解答

phpcms和帝国CMS二次开发优缺点分析及站长如何适合自己的cms 推荐

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



打赏

取消

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

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

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

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

评论

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