How to export values in a database to an Excel sheet with php
I would like to ask you experts:
What is the best way to populate an Excel worksheet from a database with php?
I have an Excel worksheet containing headers and want to fill in values from the database in cells.
The database is on a web server.
Thanks for the answer. I'll try to explain what I want to achieve.
The database contains more than 40 columns. Out of these I'd like to use 15. I have defined the columns I'd use and disregard the remaining columns.
I attach a Example_sheet.xlsxxlsx file as an example
So, I'd like to take data from the database and fill them in into the excel worksheet och predetermined places.
In the past I used an xml file that I populated with data from the database. What I am after is more of modern approach.
Hope this explains better what I am after.
Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.
http://www.howtogeek.com/howto/24285/use-online-data-in-excel-2010-spreadsheets/
Best,