会员中心改造时,需要调用用户已评论的文章列表功能,即会员自己评论过的文章形成的列表!代码如下:div style='border:1pxsolid#ddd; 'div class='header' style='border-bottom:1px Solid #ddd'我的评论/divul style=' ''?php$sql=$empire-query('select A.id,A.saytime,B.title,B .titleurl 来自{$dbtbpre}enewspl_1 as A,{$dbtbpre}ecms_news as B 其中A.id=B.id A.userid=$user[userid] order by A.saytime desc limit 100'); //查询注释while($r=$empire-fetch($sql)) //循环获取查询记录{echo 'li style='height:26px;line-height:26px;text-indent:10px; border-top:1pxsolid #eee;'a target=_blank href='.$r['titleurl'].''.$r['title'].'('.date('Y-m-d',$r[ saytime]).')/a/li';}?ul/div 注:{$dbtbpre}ecms_news 数据表名称