Thank The Cheese
Registered
Good evening,
I always make sure my HTML websites are valid HTML/CSS using W3C's validator. I'm trying to do the same for my PHP pages, but after I fix all the errors I'm left with this:
The MIME Media Type (text/html) for this document is used to serve both SGML and XML based documents, and it is not possible to disambiguate it based on the DOCTYPE Declaration in your document. Parsing will continue in SGML mode.
What does this mean? I'm very new to the world of PHP, but I would presume from the message something is wrong in my doctype. This is what it looks like at the moment:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 TRANSITIONAL//EN"
"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Page title</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
...
Is that correct for a page that uses PHP and MySQL?
I always make sure my HTML websites are valid HTML/CSS using W3C's validator. I'm trying to do the same for my PHP pages, but after I fix all the errors I'm left with this:
The MIME Media Type (text/html) for this document is used to serve both SGML and XML based documents, and it is not possible to disambiguate it based on the DOCTYPE Declaration in your document. Parsing will continue in SGML mode.
What does this mean? I'm very new to the world of PHP, but I would presume from the message something is wrong in my doctype. This is what it looks like at the moment:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 TRANSITIONAL//EN"
"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Page title</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
...
Is that correct for a page that uses PHP and MySQL?