hi
using
http://www.kirupa.com/web/mysql_xml_php.htm
I created
http://www.jamesflowersreports.com/php/xml2.php
using my own database
using this below
for($x = 0 ; $x < mysql_num_rows($resultID) ; $x++){
$row = mysql_fetch_assoc($resultID);
$xml_output .= " <entry>
“;
$xml_output .= " <Name>” . $row[‘customerName’] . “</Name>
“;
// Escaping illegal characters
$row[‘text’] = str_replace(”&”, “&”, $row[‘text’]);
$row[‘text’] = str_replace("<", “<”, $row[‘text’]);
$row[‘text’] = str_replace(">", “>”, $row[‘text’]);
$row[‘text’] = str_replace(""", “”", $row[‘text’]);
$xml_output .= " <Number>" . $row[‘customerNumber’] . "</Number>
";
$xml_output .= " </entry>
";
}
$xml_output .= “</entries>”;
if I have a whitespace in CustomerName , it craps out , but replace that with a number it works fine.
is it like a whitespace etc?
Regards
JAmes