Write array to xml file
    //this is the code that creates the array and the output follows
    while ($results_row = mysql_fetch_assoc($results)) {
            $returned_results[]= array(
                                        'partName'=>$results_row['partName'],
                                        'description'=>$results_row['description'],
                                        'price'=>$results_row['price']

    //what is contained in the array is as follows
    Array
    (
    [partName] => Cooler Master CM Storm Trooper Case
    [description] => Armored appearance. Nicely placed handle at the top. At the front; ext
    [price] => 36000
    )
    1

    Array
    (
    [partName] => Cooler Master eXtreme Power Plus 500-Watt
    [description] => Power Plus 500-Watt Power Supply,many SATA and peripheral connectors. 
    [price] => 23000
    )
    1

    Array
    (
    [partName] => Coolmax M-500B ATX Power Supply
    [description] => The Coolmax M-500B ATX Power Supply has 5 SATA and 5 Peripheral, 8 pin
    [price] => 20000
    )
<strong>I need to write the data contained in the array variable($returned_results[]) to an xml file. After that i will display it in an xml table. But i think i can manage the latter. Could you help me with a code example. Please & Thank you!!</strong> 
Write array to xml file
===

    //this is the code that creates the array and the output follows
    while ($results_row = mysql_fetch_assoc($results)) {
            $returned_results[]= array(
                                        'partName'=>$results_row['partName'],
                                        'description'=>$results_row['description'],
                                        'price'=>$results_row['price']

    //what is contained in the array is as follows
    Array
    (
    [partName] => Cooler Master CM Storm Trooper Case
    [description] => Armored appearance. Nicely placed handle at the top. At the front; ext
    [price] => 36000
    )
    1

    Array
    (
    [partName] => Cooler Master eXtreme Power Plus 500-Watt
    [description] => Power Plus 500-Watt Power Supply,many SATA and peripheral connectors. 
    [price] => 23000
    )
    1

    Array
    (
    [partName] => Coolmax M-500B ATX Power Supply
    [description] => The Coolmax M-500B ATX Power Supply has 5 SATA and 5 Peripheral, 8 pin
    [price] => 20000
    )
<strong>I need to write the data contained in the array variable($returned_results[]) to an xml file. After that i will display it in an xml table. But i think i can manage the latter. Could you help me with a code example. Please & Thank you!!</strong> 