Hello everyone,
I am trying to display the results of a query in XML format and cant
seem to get it to work. Has anyone had any trouble exporting PHP/MySQL
-> XML? I am using the following format:
File: xmlexport.php
<?php header("Content-Type: text/xml"); ?>
<?xml version"1.0"?>
<rss version="2.0">
<channel>
<?php
// Database Functions Here to Access Data
echo "<item>$iteminfofromdb</item>";
?>
</channel>
</rss>
This is the basic format i am following. When I just put some plain
XML data in the file and try to access it through my web browser
nothing shows up either. Is there something about using the .php
extension as an XML file?
Thanks,
-Rick