PHP code for exporting a MySQL table to a CSV file
June 5, 2009 7:01 pm
After a lot of searching, and a lot of troubleshooting, I finally found PHP code for exporting a CSV file from MySQL that works perfectly! This might be old news to some, but I’d never done it before and I needed to have that export feature on my Store Locator plugin.
$result = mysql_query(“SHOW COLUMNS FROM [...]