Possible Duplicate:
Export from PHP to Excel
I need to export data retrieved from mysql database to excel. I need to do some changes to my data before exporting to excel. I really can’t understand how I should begin.
Should i go for PEAR? or any other class library? or any simple way to do this?
You can use phpexcel library. It allow you to write to and read from different spreadsheet file formats.