Jump to content

JuNK AFTER DOCUMENT?


Gayner

Recommended Posts

<?php
header('Content-Type: text/xml; charset=UTF-8');
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<gt>
<status><![CDATA['.$_GET['status'].']]></status>
</gt>';
mysql_query("UPDATE users SET status = '". mysql_real_escape_string($_GET["status"]) ."' WHERE id='{$_SESSION['user_id']}'");
?>

 

error:

 

XML Parsing Error: junk after document element

Location: http://localhost/rofl.php

Line Number 2, Column 1:<b>Notice</b>:  Undefined index:  status in <b>C:\wamp\www\rofl.php</b> on line <b>5</b><br />

^

 

help ?

Link to comment
https://forums.phpfreaks.com/topic/184948-junk-after-document/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.