I posted this before, It gets the variables from a saved csv file. I use the saved result csv. file for all my data manipulation. If I was to save data I would reorder it as I wanted then put it back in a database. Actually I use a flat file system that works using csv files. check out
http://www.pjj.pl/pjjtextbase/ absolutely brilliant system, Created by a much respected Polish programer, Unless you are taking on Google this database system is all you want and you can upload it to a clients host and it hits the ground running. I used it to create a classified system in php as a way of learning the language. Bailed out at the Admin system creation, Lost interest plus there are better systems out there.
<?php
error_reporting(E_ALL & ~E_NOTICE);
[quote]$file_handle = fopen("Displayform/storage/csv/results.csv", "r");// the address where the file is located
while (!feof($file_handle)){
$item = fgetcsv($file_handle, 1024);
if($item=="")Break;// make sure the last entry is used
$lastitem=$item;
}
fclose($file_handle);
$data1 = $lastitem[0];
$data2= $lastitem[1];
?>
Write out a map of exactly what you want and break that in achievable steps then work on each step not worrying about the others.
The Guy from OZ