Page 1 of 1

XML to database

Posted: Tue Oct 03, 2006 2:09 pm
by leewad
Hello

I`m wanting to convert an XML file into a MYSQL file using php, I need a form to upload a xml and it outputs the sql onto the screen, does anyone know where such a script exists?

Cheers

Posted: Tue Oct 03, 2006 2:47 pm
by Burrito
assuming the field names on the table are the same as the nodes in the xml file, you could write it very easily.

if you have php 5.0 or greater, take a look at the simpleXML functions.

if you're hell-bent on using an existing script, I'd have a look over at hotscripts.com