get.php:
<?php error_reporting(E_ALL ^ E_NOTICE); //include db connection settings //change this setting according to your environment require_once('common/config.php'); require_once('common/config_dp.php'); //include XML Header (as response will be in xml format) header("Content-type: text/xml"); //encoding may be different in your case echo('<?xml version="1.0" encoding="utf-8"?>');//start output of data
echo ‘’;
//output data from DB as XML
$sql = "SELECT * from 108027
";
$res = mysql_query ($sql);
if($res){
while($row=mysql_fetch_array($res)){
//create xml tag for grid’s row
echo ("<row id=’".$row[‘id’]."’>");
print("");
print("");
print("");
print("");
print("");
print("");
print("");
}
}else{
//error occurs
echo mysql_errno().": “.mysql_error().” at “.LINE.” line in “.FILE.” file
";
}
echo ‘’;
?>
Error: (Result)
This page contains the following errors:
error on line 2 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.