php调用最新10条留言板回复

<?php
$sql=$empire->query("select lyid,name,email,`mycall`,lytime,lytext,retext from {$dbtbpre}enewsgbook where bid=1 and checked=0 limit 10");
while($r=$empire->fetch($sql))
{
    /*
    *sql语句里面,bid=1 bid是父类id
    */
        echo"用户名:".$r['name']."<br>";
        echo"邮 箱:".$r['email']."<br>";
        echo"回 复:".$r['lytext']."<br>";
        echo"时 间:".$r['lytime']."<br><hr>";
}
?>