<?php $sql=$empire->query("select A.id,A.saytime,B.title,B.titleurl from {$dbtbpre}enewspl_1 as A, {$dbtbpre}ecms_news as B where A.id=B.id && A.userid=$user[userid] order by A.saytime desc limit 100"); //查询评论 while($r=$empire->fetch($sql)) //循环获取查询记录 { echo "<li 'height:26px;line-height:26px;text-indent:10px;border-top:1px solid #eee;'><a target=_blank href=".$r['titleurl'].">".$r['title']."(".date('Y-m-d',$r[saytime]).")</a></li>"; } ?>