Can someone please help.
I am trying to export mysql to excel, I have completed the tutorial and all works fine except for the end the headers. I get no errors or warning just the contents of the file is diplayed in the browser.
I have tried many different headers for excel from google. However none seem to work.
Here is a simple file i have been trying to get to work
$filename = "aaa";
header("Pragma: public"); // required
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false); // required for certain browsers
header("Content-Disposition: attachment; filename=extraction.xls" );
Echo"Car Type,Car Model,Number of Cars\n";
PHP EXCEL HEADER HELP PLEASE
1 reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users