Problem with fetching data to csv from database

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
B.Murali Krishna
Forum Commoner
Posts: 28
Joined: Fri May 12, 2006 2:05 am
Location: Hyderabad,India
Contact:

Problem with fetching data to csv from database

Post by B.Murali Krishna »

Hello Everybody,

I have a problem of fetching data from database and writing it into csv file. Problem is if my data is a string

eg : "fasdfksadfsa,sadfjsadlkf, skfsadfsa" consiting of kama's then the i am getting the string devided into 3 columns, because they are seperated by Kama's. What can i do to get out of this problem.

Thank U
Murali Krishna
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Comma.

fputcsv() may be of interest.
Post Reply