帝国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 解决后台登录次数不得超过5次限制的方法

帝国CMS自动截取简介出现乱码的解决方法

acrobat怎么批量保存pdf小图片 pdf文件导出所有图像的技巧

帝国CMS在微信公众号里面获取不到下载认证码的解决方法

帝国CMS实现用户访问页面自动生成html的方法

帝国CMS提示parse error syntax error的解决方法

建站常用13种php开源cms比较

帝国CMS中[!--no.num--]标签的用法分析

帝国CMS采集图文教程(上,中,下)全集

qq怎么拒绝陌生人邀请进群?qq屏蔽陌生人邀请进群的方法

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



打赏

取消

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

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

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

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

评论

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