//打开用于存储留言的XML文件
$guestbook = simplexml_load_file('DB/guestbook.xml');
foreach($guestbook->thread as $th) //循环读取XML数据中的每一个thread标签
{
echo "
标题:".$th->title."
";
echo "
作者:".$th->author."
";
echo "
内容:".$th->content."
";
echo "
";
}
?>
BR>"http://www.w3.org/TR/html4/loose.dtd">
发表新的留言