XML error, but its not an XML document
| From: | Trystano at aol dot com | Date: | Wed, 02 Apr 2003 15:34:10 +0000 |
| Subject: | XML error, but its not an XML document | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-19266@lists.php.net to get a copy of this message | ||
When ever I try to load my PHP document in IE I get the following error
message...
XML page cannot be displayed. Cannot view XML input using style sheet.
Invalid at the top level of the document. Error processing resource
'http://localhost/Sessions/login.php'. Line
1, Position 1
...and then it displays the query string I have built up. I think the problem
lies where I have tried to build the variable via a long query string.
Whenever I leave out these lines of code, everything works fine. The code is
below...
$query_2_tables = "select patients.patientid, patients.firstname,
patients.surname from auth, patients ";
$query_2_tables .= "where username='".$username."' and
password='".$password."'";
$query_2_tables .= "and auth.patientid = patients.patientid";
echo $query_2_tables;
...if anyone can identify what the problem is it would be a great help.
Cheers.
Tryst