Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

February 26, 2010

58 Comments

mysql-database-freelancer-developer-2

Export MYSQL data into Excel/CSV via php

Today i came across a functionality where i need to Export the MYSQL data into CSV/Excel file via PHP function/script. There are such requirement where client needs to Export the MYSQL data (Order data,Member data,Newsletter emails etc) into Excel sheet or CSV file for future reference or need to send to other team for future work. You can give a button or link from where client can click on it and get a Excel or CSV file with all data from MYSQL database tables using(through) PHP.