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
Use simplexml to parse your xml into a usable php object. http://www.php.net/manual/en/function.simplexml-load-string.php