下吧资源网_专注精品网站源码下载的网站_免费商业源码分享

帝国CMS灵动标签调用多表多模型文章信息

帝国cms模板网就来告诉大家帝国cms灵动标签调用多表多模型文章信息的方法

调用多模型的最新文章

[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.xiaba.cc/html/202207/1067.html

版权声明:站内所有文章皆来自网络转载,只供模板演示使用,并无任何其它意义!

发表评论 共有 0 条评论)

联系客服
网站客服 业务合作 Q交流群
123456789
公众号
公众号
公众号
返回顶部