FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Import values from XML file
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Import values from XML file [message #176194 is a reply to message #176193] Thu, 01 December 2011 02:21 Go to previous messageGo to previous message
Hans Olo is currently offline  Hans Olo
Messages: 7
Registered: October 2011
Karma:
Junior Member
On 11/30/2011 5:30 PM, Sarah cried from the depths of the abyss:
> I've an XML file with this structure
>
> <?xml version="1.0" encoding="UTF-8"?>
> <azienda tabella="tb">
> <riga IdAA="1" DesBB="Eliminazione" />
> <riga IdAA="2" DesBB="Controllo" />
> </azienda>
>
> can you tell me how can I save each row in my DB?
>
> I don't know how to create a function for read all values and save in
> DB table

I do this quite often, and use PHP's DOM functions to read the .xml

http://php.net/manual/en/book.dom.php

Once you can read through the .xml file it's fairly basic how to insert
into a table.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: php code
Next Topic: Books?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 14:01:28 GMT 2024

Total time taken to generate the page: 0.05196 seconds