Good day
I have the following code which exports mysql data to excel and it works:
$fileName = “per_manager_report_”.date(‘Ymd’)."_".$username . “.xls”;
header(“Content-Type: application/xls”);
header(“Content-Disposition: attachment; filename=”$fileName"");
echo $output;
Please help with two issues,
-
When opening the downloaded file it asks for language, how do I hard code this so that it’s automatically.
-
If the field has numbers, example 0823123, its not saved as text so the “0” infront is gone, >> 823123. How to auto text.
Kind Regards