php script -- 2

Job ID: 31557419

Budget: €8 – €30 EUR

hello!
I have the following mysql query that shows the orders that I want.

Now I want the data of this query to be saved in the following format of an xml file. (the format of the xml file MUST be exactly as following)

This script I need it in php and when someone runs the php file on my server the xml file should start to download

Finally when the xml file will begin to download I want the last update query to be run, ONLY if the xml file is complete. So I need something to check the xml file that is ok and then run the update query.



I will NOT provide access to my server, but I will give access to a php file on codeanywhere in order to test and run the script.

FULL DESCRIPTION IS ON THE TXT FILE
Related categories: PHP XML MySQL