温馨提醒

如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!

本文最后更新于2020年12月15日,已超过 30天没有更新

调用多模型的最新文章

  [e:loop={'select * from (   select id,classid,titleurl,filename,title,newstime,titlepic from [!db.pre!]ecms_movie where newstime union   select id,classid,titleurl,filename,title,newstime,titlepic from [!db.pre!]ecms_news where newstime union   select id,classid,titleurl,filename,title,newstime,titlepic from [!db.pre!]ecms_photo where newstime union   select id,classid,titleurl,filename,title,newstime,titlepic from [!db.pre!]ecms_flash where newstime union   select id,classid,titleurl,filename,title,newstime,titlepic from [!db.pre!]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]

注释:以上多个模型用“Union”连接调用

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

版权声明:原创作品,未经允许不得转载,否则将追究法律责任。
本站资源有的自互联网收集整理,如果侵犯了您的合法权益,请联系本站我们会及时删除。
本站资源仅供研究、学习交流之用,若使用商业用途,请购买正版授权,否则产生的一切后果将由下载用户自行承担。
本文链接:悟空资源网https://www.wkzyw.com/2983.html
许可协议:《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权