–I have some rows from my table which I would like to export in excel format. This step is equivalent to the user enters the search criteria and all matching rows will be exported in an excel file.
–The user makes changes to the excel file. Add or update rows.
–The user upload the file and all updated rows gets updated in the database and all added rows gets added in the database.
All this I want to do in PHP and the database it is using is MySQL. Servers are running Linux (no COM!)
I have exporting and importing part I explained above done seperately.
I am using PHPExcelReader to read the file and save it. But that requires the user to download the template first, copy data from exported excel and paste it in the template.
For exporting, I am just creating a simple HTML table and fool the browser, its an excel!
Excel will open HTML table but ofcourse while saving that file, it will change the format and make it valid excel file.
Please throw some ideas on how can I make it work? :/
Thank you … I greatly appreciate your help.
I would like to suggest you PHPExcel library.
http://phpexcel.codeplex.com/
You can do import, export, pdf, etc. I think this is a great library.