I have a my sql table called pvdata, I would like to export it to csv file.
But I\'m obtaining the following results instead of the normal looking table:
You can use fputcsv function for clear code.