帝国CMS首页调用评论表信息内容 分别使用PHP以及灵动标签方式

1、帝国CMS模板php调用评论时间+评论内容+文章地址

query("select * from {$dbtbpre}enewspl_1 order by saytime limit 10"); 
while($r=$empire->fetch($sql))   //循环获取查询记录
{
echo "
  • “.date(‘m-d’,$r[saytime]).”“.$r[‘saytext’].”

“; } ?>

2、帝国CMS模板灵动标签调用评论时间+评论内容+文章地址

[e:loop={"select * from {$dbtbpre}enewspl_1 order by saytime limit 10",0,24,0}]
  • e/action/ShowInfo.php?classid=&id=” target=”_blank”>

[/e:loop]

3、帝国CMS模板灵动标签调用评论时间+评论内容+评论地址

[e:loop={"select * from {$dbtbpre}enewspl_1 order by saytime limit 10",0,24,0}]
  • e/pl/?classid=&id=” target=”_blank”>

[/e:loop]

 

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注