<div style="border:1px solid #ddd; "><div class="header" style="border-bottom:1px solid #ddd">我的评论</div><ul style=" "><?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 style='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>";}?><ul></div>
注意:{$dbtbpre}ecms_news 数据表名
希望以上内容对你有所帮助!如果还有其他问题,请随时提问。 各类知识收集 拥有多年CMS企业建站经验,对 iCMS, Fastadmin, ClassCMS, LeCMS, PbootCMS, PHPCMS, 易优CMS, YzmCMS, 讯睿CMS, 极致CMS, Wordpress, HkCMS, YznCMS, WellCMS, ThinkCMF, 等各类cms的相互转化,程序开发,网站制作,bug修复,程序杀毒,插件定制都可以提供最佳解决方案。