Jump to content

writing to csv problem


beebosoft

Recommended Posts

I have a database which holds records one fields of which holds the address of a client.  I need to on a regular basis download this from the site as presferable a csv file.  My problem is that some of the addresses have been entered with commas between the elements.  when i down load the csv file it is not all set out neatly because of the extra commas.

 

Does anyone have an idea of how i can get round this?

 

Thanks in anticipation

 

Angie

Link to comment
https://forums.phpfreaks.com/topic/154684-writing-to-csv-problem/
Share on other sites

I tested the fputcsv.  It split each part up on the line.  What i want is to ignore the commas in that field so the address is all in one field.  should i try writing to a different type of file or should i try not letting commas be put into the address field?

 

Angie

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.