I'm trying to write something which gets records from a database and turns these into a csv file,
the problem i'm having is when comma's appear in the fields, i'm aware that i need to add quotes round all the fields likely to contain comma's but i'm not sure how to do this.
at the moment i have
<cffile action="append"
file="#filename#"
output="#getbuyers.person_id#,#getbuyers.Firstname#,#getbuyers.Lastname# ... #getbuyers.Zipcode#">
is there anyway i can enclose each of the fields in quotes,
i tried using &quot; and it doesn't work
thanks for any help you can give me
Emma
the problem i'm having is when comma's appear in the fields, i'm aware that i need to add quotes round all the fields likely to contain comma's but i'm not sure how to do this.
at the moment i have
<cffile action="append"
file="#filename#"
output="#getbuyers.person_id#,#getbuyers.Firstname#,#getbuyers.Lastname# ... #getbuyers.Zipcode#">
is there anyway i can enclose each of the fields in quotes,
i tried using &quot; and it doesn't work
thanks for any help you can give me
Emma