最新公告
  • 欢迎您光临 我爱模板网,本站秉承服务宗旨 履行“站长”责任,销售只是起点 服务永无止境! 立即加入钻石VIP
  • 帝国cms用灵动标签调用全站所有数据表最新信息的方法

    正文概述 管理员   2025-09-06   5

    灵动标签调用多个数据表信息的方法如下:

    [e:loop={'select * from (
    
    select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_book where newstime union
    
    select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_course where newstime union
    
    select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_soft where newstime union
    
    select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_game where newstime union
    
    select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_js where newstime union
    
    select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_templet where newstime union
    
    select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_mv where newstime union
    
    select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_news where newstime) a order by newstime desc limit 7',7,24,0}]
    
    <li><b><?=$bqno?></b><div><a href="<?=$bqsr[classurl]?>" target="_blank">[<?=$bqsr[classname]?>]</a></div><a href="<?=$bqsr['titleurl']?>" class="gxone" target="_blank"><?=$bqr['title']?></a></li>
    
    [/e:loop]

    我爱模板网 » 帝国cms用灵动标签调用全站所有数据表最新信息的方法

    发表评论

    如需帝国cms功能定制以及二次开发请联系我们

    联系作者
    script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?587cc1e5c052b5b0ce99533beff13c96"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();

    请选择支付方式

    ×
    支付宝支付
    余额支付
    ×
    微信扫码支付 0 元