Export MySQL data records to an Excel file in one PHP file, simple and easily!
This tutorial require 1 PHP file and 1 table of mySQL database.
export_excel.php
Database "tutorial" and table "name_list" with 2 fields: id(auto_increment), name(varchar, 50) and put some records about 20 - 30 records into this table. (directly by phpMyAdmin)