如何在帝国cms模板里调用评论的文章链接和文章标题 栏目id: 文章id: 用户名: 评论内容 标题: 链接: .diggit { display: block; width: 160px; margin: 20px auto; background: #ff5501; color: #fff; box-shadow: 1px 2px 6px 0px rgba(0,0,0,.2); border-radius: 3px;...
如何在帝国cms模板里调用评论的文章链接和文章标题
$sql=$empire->query(select * from {$dbtbpre}enewspl_1 where id='$navinfor[id]' and checked=0 order by saytime limit 10);
$userr=sys_ShowMemberInfo(0,'');
while($r=$empire->fetch($sql)) //循环获取查询记录
{
$q=$empire->fetch1(select title,titleurl from {$dbtbpre}ecms_news where id='$r[id]' limit 1);
?>
栏目id:=$r[classid]?>
文章id:=$r[id]?>
用户名:=$r[username]?>
评论内容=$r['saytext']?>
标题:=$q[title]?>
链接:=$q[titleurl]?>
}
?>