帝国CMS用灵动标签调用新闻内容副表字段值

[e:loop={0,1,3,0}]
<?php
$fr = $empire->fetch1("select newstext from {$dbtbpre}ecms_news_data_{$bqr[stb]} where id='{$bqr[id]}'"); // sql语句调用副表的内容
?>
标题:<?=$bqr[title]?>
副表新闻内容字段:<?=$fr[newstext]?>
[/e:loop]

 

posted @ 2024-12-02 08:42  黄文Rex  阅读(40)  评论(0)    收藏  举报