帝国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灵动标签php代码实现标签无限嵌套的效果

火车头phpcms2008sp4 文章免登陆发布接口

帝国CMS实现用户自定义标签函数输出图片集大小图的方法

帝国CMS统计留言数量的方法

帝国CMS订单、反馈信息、投稿与留言发邮件通知管理员的方法

帝国CMS实现循环调用子栏目的方法

csol2万能钥匙怎么得怎么用 csol2万能钥匙获取方法

帝国CMS添加迅雷下载的方法

帝国CMS的灵动标签判断栏目id的方法

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



打赏

取消

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

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

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

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

评论

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