Xml -> php

Discussion in 'PHP' started by bulldogjjb4, Mar 5, 2012.

  1. #1
    Hi,

    I am looking for any tutorials online or if anyone can post some help thats commented.

    Basically I have an XML product feed. here is a snippet of some of the data:

    <?xml version="1.0" encoding="utf-8"?>
    
    <productFeed>
    
      <product>
    
        <product_code>24O2JPAT02</product_code>
    
        <network_name>O2</network_name>
    
        <manufacturer>Sony Ericsson</manufacturer>
    
        <model>Sony Ericsson Xperia Arc S White</model>
    
    PHP:
    How do I go about storing for example <product_code> as a variable so then I can make an mysql statement?

    Thanks in advance
     
    bulldogjjb4, Mar 5, 2012 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    jestep, Mar 5, 2012 IP