Export data from the database to Excel and CSV files in PHP without using the library. This application is developed to demonstrate how to pull data from MySQL database and create & download Excel and CSV files without using an external library. Simple PHP code to display the data in an HTML table with two download buttons. Website: https://codehow2.com
- Download the repository from https://github.com/sundarsau/export-excel-csv-php
- Extract all the files in a folder under xampp/htdocs
- Create the tables in "test" database in MySQL by running the .sql file
- Run localhost/(folder name) in the browser. (folder name) is the project folder under xampp/htdocs
This is an MIT license, you can modify the code according to your requirements