建站咨询:

建站业务咨询 预约上门 400-666-5826

公司动态| 关于魔狐狸| 魔狐狸建站学堂

魔狐狸科技有限公司
营销型网站建设专家
我们不仅仅做网站,更懂得网络营销
  • 10年网站建设经验
    10年网站建设经验
  • 服务客户超2000家
    服务客户超2000家
  • 超20人后台服务团队
    超20人后台服务团队
  • 超强网络营销策划能力
    超强网络营销策划能力
您所在位置:首页 > 建站知识 > 网站建设

帝国cms多表查询方法 调用自定义列表路径的方法

来源:魔狐狸官网 发布时间:2017-01-10 19:04:05

有时候在做网站的时候,根据具体需求需要多表查询调用,实现代码如下:

[e:loop={'select * from (
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}]
[/e:loop]

因为做的,自定义列表比较多,现在想用自定义页面吧所有的列表调用出来。用灵动标签可以调用出列表的名字,但是连接无法调出,解决方法:

[e:loop={"select *  from [!db.pre!]enewsuserlist",20,24,0}]
<a href="<?=($bqr[filepath])?>"><?=$bqr[listname]?></a></li>
页面名称:<?=$bqr[listname]?>
页面地址:<?=($bqr[filepath])?>


提示:手机触屏可一键拨号,电话:400-666-5826

 

 

联系方式
工作时间:8:00-19:00
咨询电话:400-666-5826
客服邮箱:service@mohuli.com
 
魔狐狸-微信
服务项目
网站建设 网络营销 域名注册 主机租用
企业邮箱 商标注册 网站托管 400电话
建站学堂 建站知识 模板中心 案例展示

© 2008-2016    魔狐狸备案豫公网安备 41010302000002号   豫ICP备15024447号   

魔狐狸-网站报价 网站报价


400-666-5826

魔狐狸二维码

微信扫码,了解更多