views:

42

answers:

2

Hi, I am searching for a PHP function that dynamically generates an XML file with data from a MySQL database. It should also update the database if the XML file is changed.

+1  A: 

This link will help you ...

http://code.google.com/apis/maps/articles/phpsqlajax.html

Best of luck :)

Richa
+1  A: 

You should fine these resources useful:

Or tutorials:

Sarfraz
"Output mySQL data as XML with PHP" uses string concatenation to put the text content "into" the elements with no escaping etc. at all, not even mentioning the problem, zero points. "Create XML with MySQL and PHP" at least uses str_replace() to encode the basic xml entities. Still not something I would prefer as a tutorial but a little better. There _must_ be better tutorials out there.
VolkerK
@VolkerK: You are right, I ended up with that with bit of research but I hope there is something better out there :)
Sarfraz