Simple requirement: I want to store a flat unchanged XML strings into a MySQL-DB and then fetch the string itself via php with the tags (i.e. <tag>1234</tag>
).
Problem: When I fetch the string, I get the values not the entire XML string.
I store <tag>1243</tag>
(done via PHPmyAdmin) then I fetch (see code below) and echo the result I get 1234
not <tag>1234</tag>
.
$query = "SELECT * FROM " . $my_table_with_flat_xml_string;
$result = mysql_query($query);
while($row = mysql_fetch_array($result)){
$xml_flat_file_with_the_tags_please = $row[0];
echo " ( " . $tags. ")";
}
Help!