I can't my head around this. I've been searching and searching but i can't find the solution for it. I need to be able to export data from mysql to a csv file, using a php script. I have the one that does it for excel but it doesn't work the same for CSV's. Can anyone help me with that please?