export trainings
This commit is contained in:
1 parent
ce25f41a44
commit
0dcae384dd
6 files changed
+147
-50
No files matched your search
@@ -34,8 +34,8 @@ $userAssocArray = $sql->assoc_array("
|
||||
$filename = "taglista.csv";
|
||||
$fp = fopen('php://output', 'w');
|
||||
|
||||
fputcsv($fp, array_keys(reset($userAssocArray)), ';');
|
||||
ob_end_clean();
|
||||
fputcsv($fp, array_keys(reset($userAssocArray)), ';');
|
||||
|
||||
header('Content-type: application/csv');
|
||||
header('Content-Disposition: attachment; filename='.$filename);
|
||||
@@ -43,3 +43,4 @@ header('Content-Disposition: attachment; filename='.$filename);
|
||||
foreach($userAssocArray as $row) {
|
||||
fputcsv($fp, $row, ';');
|
||||
}
|
||||
exit(1);
|
||||
Reference in new issue
Block a user