Replace all "" symbols with " on inset. 

        
myDBfield='#REREPLACE("#Trim(form.myfield)#",""","""","all")#'



Robert B. Harrison
Director of Interactive services
Austin & Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T : 631.231.6600 Ext. 119 
F : 631.434.7022
www.austin-williams.com

Great advertising can't be either/or... It must be &.
-----Original Message-----
From: Chad Gray [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 01, 2008 1:55 PM
To: CF-Talk
Subject: cf5 and single quote

I am forced to use CF5.

Now if someone enters a single quote in a form and I try to insert it into
the database I get a SQL error because the single quote is not escaped.

Is there an easy way to fix this in CF5?

Does cfqueryparam escape them?




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297944
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to