export-mysql-to-excel Export MySQL Database to Excel Using PHP The code below will export every column name and value from your database into an excel document.