Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Working with PHP, XML, MySQL
March 2, 2007, 10:43 am
rate this thread
I am having an XML file that contains booking details. These booking
details are supposed to get gennerated from a booking application.
I then need to build a system that will process those XML files and
store them inside a MySQL DB using PHP.
Is there any standard methodology to do such thing ?
IS there a class I should use to make my life easier?
The ideal situation would be to somehow achieve storing the XML
elements inside a multidimensional array and then insert them in the
Can you point me in the right direction please ? I 've never dealt
with XML parsing.
Thanks in advance.
Re: Working with PHP, XML, MySQL
I've used miniXML which works quite well, but I am getting some weird
Notice: Only variable references should be returned by reference in /
PATH/TO/DIR/miniXml/classes/element.inc.php on line 610
but i still have some problems as the XML structure has multiple
elements with the same name but different attributes
+ <PassengerDetail p="1">
+ <PassengerDetail p="2">
+ <PassengerDetail p="3">
and I don't know how to put these an array