nathaneyre.com
Export MySQL table in CSV format using PHP - Nathan Eyre
I recently had a project that I had to extract data from a MySQL database and produce a CSV file from it. Upon my search I found the following code to do just that....