This is post is now quite old and the the information it contains may be out of date or innacurate.
Some people like their excel files. For people who want their data exported in an excel format checkout this chunk of code. It’s really easy :–)
First of all you need to download this php excel class
Now try this code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
That’s got to be the easiest thing you have ever done in PHP. Thanks goes to the excellent PHP Classes site.
Here is some further reading: PHP Excel Formula Parser PHP Excel Export class Export data directly to Excel by configuring the MIME Type Profile Option Power your PHP Business Logic with Excel Reading/Parsing Excel Spreadsheet using PHP