Heim  >  Artikel  >  Backend-Entwicklung  >  XML的异常在哪里啊

XML的异常在哪里啊

WBOY
WBOYOriginal
2016-06-13 13:16:08755Durchsuche

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...
-------------------------------

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn