Let\'s say I have a database.... is there a way I can export what I have from the database to a CSV file (and text file [if possible]) via PHP?
I recommend parsecsv-for-php to get around a number any issues with nested newlines and quotes.