帝国CMS调用我的评论列表方法和使用说明
2020-04-10 站长 站长日志
<?php $sql = $empire ->query( "select * from {$dbtbpre}enewspl_1 order by saytime limit 10" ); while ( $r = $empire ->fetch( $sql )) //循环获取查询记录 { echo "<li><span class='time'>" . date ( 'm-d' , $r [saytime]). "</span><a target=_blank href='/e/action/ShowInfo.php?classid=" . $r ['classid ']."&id=".$r[' id ']."' >". $r [ 'saytext' ]. "</a></li>" ; } ?> |