Hi,
I'm pulling data from an XML feed that looks sort oif like the following.
Maybe you can help here. I'm confused on how to put all of my arrays into one array, then input the data one by on into my DB.
Here's what each item looks like in my feed:
<item>
<title>Some Title</title>
<rank>1</rank>
<daily>33</daily>
<daily2>44</daily2>
<average>164</average>
<total>8702</total>
<link>http://www.somelink.com</link>
</item>
Now, in the feed there are 10 "items" that look like this. I have an array for each field being generated using preg_match_all()...
I need to get each "item chunk" into my database, 1 chunk at a time, with each entry's fileds correspoding with each field in the XML.
Is this the way to do this...or is there an easier way?
I really appreciate the help in any way! Please, coding exmaples are welcomed!
Thanks!