I have a survey site that collects data from user inputs and stores it in MySQL.
I want some users to be able to go to a page that allows them to download a formatted excel file of the data (note, not a csv).
I’ve heard ODBC allows you to interface excel with MySQL, but can’t find any server side applications for it.
Is it possible?
I’m using PHP for the site.
Thanks
Exporting a database to an excel file should not be difficult since excel can read xhtml.
Just output your information as a regular HTML table
and then add these headers to force automatic download and interpretation as an excel file:
It should work as intended.
EDIT:
Here’s an example of a table to xls with correct XHTML schema: