Hi! Bender,
We have checked your previous and also updated PHP file, & found that there are still errors on it, that is you are not using the closing tag i.e. "' />" and little more.
Example (as in your code):
$strXML .= "<category label='" .$ors['product'];
$strXML .= "<set value=" .$ors3['profit'];
It should be like:
$strXML .= "<category label='" .$ors['product'] . "'/>";
$strXML .= "<set value='" .$ors3['profit'] . "'/>";
For reference I have modified your previous PHP file, Please have a look on the attached PHP file.
php_file.txt