3 batch CSV processor, included from batchcom
7 // menu for fields could be added in the future
9 while ($row=sqlFetchArray($res)) {
13 foreach ($row as $key => $value ){
16 $file=substr($file,0,-1);
21 foreach ($row as $key => $value) {
24 $line=substr($line,0,-1);
32 $today=date('Y-m-d:H:i:s');
33 $filename="CSVdata-".$today.".csv";
34 header('Pragma: private');
35 header('Cache-control: private, must-revalidate');
36 header("Content-type: text/comma-separated-values");
37 header("Content-Disposition: attachment; filename=".$filename);