XML的异常在哪里啊

WBOY
Release: 2016-06-13 13:16:08
Original
786 people have browsed it

XML的错误在哪里啊?
header('Content-Type: text/xml ');
echo '';
echo '';
$link=mysqli_connect('localhost','root','root','tbr_121d') 
or die('fail to connect to the database');
$query="SELECT * FROM drill";
$result=mysqli_query($link,$query);
while($row=mysqli_fetch_object($result)) {
echo ''.$row->question.'';
echo '';
echo '';
echo '';
echo '';
}
echo '
';
mysqli_close($link);
?>

--------------------------------
无法显示 XML 页。 
使用 XSL 样式表无法查看 XML 输入。请更正错误然后单击 刷新按钮,或以后重试。 


--------------------------------------------

XML 文档只能有一个顶层元素。处理资源 'http://localhost/loading_drill' 时出错。第 2 行,位置: 2 

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\lo...
-------------------------------

------解决方案--------------------

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template