Fuxi
Fuxi

Reputation: 7599

PHP Creating CSV not working as expected

i'm trying to create a CSV using this solution: Creating csv file with php

Something is wrong, i keep getting data stuffed into one cell like this:

enter image description here

each value should be in an own cell .. any ideas what's wrong? seems like the csv uses the wrong delimiter.

thanks

Upvotes: 0

Views: 113

Answers (1)

Fuxi
Fuxi

Reputation: 7599

I finally found the solution: seems like it doesn't work for the German version of Excel, all I had to do is changing the delimiter to a semi-colon like this:

fputcsv($fp, $val, ";");

Upvotes: 1

Related Questions