TheRealRaziel
02-03-2005, 10:53 AM
Hi,
i'm building a small cms for a flash movie but i need to put the MySQL data into an xml file due to security reasons.
right now i have the first part of a parser that checks the time entries in the table to see if their recent. if the entry is it get's parsed into the xml.
but how do i get the sql data parsed into an xml file?
right now i made a sample xml file by hand and it looks like this:
<?xml version="1.0\" ?>
<myImages>
<src file="banner.jpg" freq="4" url="click.php?id=1" />
<src file="banner.swf" freq="3" url="click.php?id=3"/>
<src file="banner2.jpg" freq="2" url="click.php?id=2" />
<src file="outofservice.swf" freq="1" url="click.php?id=4" />
</myImages>
i'm building a small cms for a flash movie but i need to put the MySQL data into an xml file due to security reasons.
right now i have the first part of a parser that checks the time entries in the table to see if their recent. if the entry is it get's parsed into the xml.
but how do i get the sql data parsed into an xml file?
right now i made a sample xml file by hand and it looks like this:
<?xml version="1.0\" ?>
<myImages>
<src file="banner.jpg" freq="4" url="click.php?id=1" />
<src file="banner.swf" freq="3" url="click.php?id=3"/>
<src file="banner2.jpg" freq="2" url="click.php?id=2" />
<src file="outofservice.swf" freq="1" url="click.php?id=4" />
</myImages>