I need a php script to create an xml file and save it in a directory on my web server. The files to be created are label files and are simply xml with portions to be populated from a MySQL database.
[url removed, login to view] - A table of products with checkbox to select which products to create barcodes.
[url removed, login to view] - This page will loop through for each selected product and create a file and save it to labels directory. (this is the page that needs to be completed)
The name of the file will have the format <product_id>-<op_name>.label
The fields to be inserted in the xml (label file) are:
I will provide a sample of the xml file contents.