Where is the XML error? & Lt ;? Phpheader ('content-Type: text/XML'); echo '& lt ;? Xmlversion = & quot; 1.0 & quot; encoding = & quot; UTF-8 & quot ;? & Gt; where are XML errors?
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' '. $ Row-> option_a .'';
Echo' '. $ Row-> option_ B .'';
Echo' '. $ Row-> option_c .'';
Echo' '. $ Row-> option_d .'';
}
Echo' ';
Mysqli_close ($ link );
?>
--------------------------------
The XML page cannot be displayed.
XML input cannot be viewed using the XSL style sheet. Correct the error and click refresh or try again later.
--------------------------------------------
An XML document can have only one top-level element. An error occurred while processing the resource 'http: // localhost/loading_drill. Row 2nd, Location: 2
Warning: Cannot modify header information-headers already sent by (output started at C: \ AppServ \ www \ lo...
-------------------------------
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service