php string into xml file
Posted: Sun Sep 02, 2007 1:56 pm
Hey there,
I already have a xml file with the following
What i need to do is read the data from mysql database and insert the info into each of the tags. I know how to read the data into a php file and put each of the different tags like photo, url, etc into strings like $photo and $url. So i know how to do it in a php file, but how do i get those strings to appear in an xml file that i already have set up?
Regards
I already have a xml file with the following
Code: Select all
- <item>
<photo>images/01.jpg</photo>
<h1>Headline One Goes Here</h1>
<p>Put text here. You can add 2 lines max Put text here. You can add 2 lines max Put text here. You can add 2 lines max Put text here. You can add 2 lines max Put text here. You can add 2 lines max</p>
<url>http://www.cnet</url>
</item>Regards