i’d like to make an export into CSV format, but the mutualised host i use has deactivate the FILE functions in mysql.
I did a simple SELECT and then a fopen and fwrite with PHP.
The problem is that in fields there is carriage returns or double quotes.
How to keep them and build a correct csv file?
Thanks a lot.
To build a best CSV. you can do following way.
Notice that,
+ when you make enclosed for description which has html code , you should use double quote.
+ Empty value –> Change to Null text or Zero value
They will make your CSV better.