fix tr export
This commit is contained in:
@@ -26,8 +26,8 @@ $trainingAssocArray = $sql->assoc_array("
|
|||||||
$filename = "edzeslista.csv";
|
$filename = "edzeslista.csv";
|
||||||
$fp = fopen('php://output', 'w');
|
$fp = fopen('php://output', 'w');
|
||||||
|
|
||||||
ob_end_clean();
|
|
||||||
fputcsv($fp, array_keys(reset($trainingAssocArray)), ';');
|
fputcsv($fp, array_keys(reset($trainingAssocArray)), ';');
|
||||||
|
ob_end_clean();
|
||||||
|
|
||||||
header('Content-type: application/csv');
|
header('Content-type: application/csv');
|
||||||
header('Content-Disposition: attachment; filename='.$filename);
|
header('Content-Disposition: attachment; filename='.$filename);
|
||||||
|
|||||||
Reference in New Issue
Block a user