Go to the documentation of this file.
26 $cn=Dossier::connect();
28 $sql=
"SELECT pcm_val, pcm_lib, pcm_val_parent, pcm_type
29 FROM tmp_pcmn order by pcm_val::text";
33 header(
'Pragma: public');
34 header(
'Content-type: application/csv');
35 header(
'Content-Disposition: attachment;filename="pcmn.csv"',FALSE);
37 for ($i=0;$i<count(
$array);$i++)
39 printf(
'"%s";"%s";"%s";"%s"'.
"\n\r",
42 $array[$i][
'pcm_val_parent'],