欢迎访问热站网,开始您的建站营销之旅!!

您现在的位置: 首页>>建站知识>>pbootcms教程

{pboot@sql sql="语句"}[sql:字段]{/pboot@sql}万能循环标签使用介绍

来源:热站网 发布时间:2026-04-25 16:03:18 热度:5 ℃

    PbootCMS V3.0.4 build 2021-02-14版本新增了{pboot@sql sql="语句"}[sql:字段]{/pboot@sql}万能循环标签。

    实测支持多表联合查询,速度OK,下面来看下群友分享的使用代码:



{pboot@sql sql="select pb_content.*, pb_content_sort.name from pb_content_sort,pb_content"}<a href="[sql:id]">[sql:title] [sql:name]</a>{/pboot@sql}


{pboot@sql sql="select ay_content.*, ay_content_sort.<?php echo "mcode";?> from ay_content_sort,ay_content"}<a href="[sql:id]">[sql:title] [sql:<?php echo "mcode";?>]</a>{/pboot@sql}


本文地址:https://rezhanwang.com/news_46/3697.html

责任编辑:热站网
 
QQ在线咨询