首页 > 教程 > 前端技术 > 标签调用

    收藏

    destoon列表页获取文章内容的方法
    2016-11-22标签调用70℃
    广告
    核心提示:include/global.func.php 加入以下函数function content($itemid) {global $db;$row = $db-get_one(SELECt * FROM {$db-pre}sell_data_5 WHERe itemid=$itemid);return $row['content'];}在循环标签中使用{content($t[itemid])} 调用
    include/global.func.php 加入以下函数
    function content($itemid) {
    global $db;
    $row = $db->get_one("SELECt * FROM {$db->pre}sell_data_5 WHERe itemid=$itemid");
    return $row['content'];
    }

    在循环标签中使用
    {content($t[itemid])} 调用
 
  • 文本链接:https://mbtxw.com/Course/show.php?itemid=105
  • 文章来源:模板模板
  • 版权声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。
0相关评论