Just use CFQueryParam... Problem solved.

......................
Ben Nadel
Certified Advanced ColdFusion Developer
www.bennadel.com
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Monday, October 09, 2006 12:53 PM
To: CF-Talk
Subject: Single or Double Quotes - textarea values

When I insert or update using the cfquery tag, some of the form fields
has a long text string that is being palced into a text data type.
Sometimes the text from the textarea contains single quotations or
commas.  This seems to throwing off my SQL statement.  Should I be
wrapping this form's values in double single quotes or or double quotes
instead of single quotes.

UPDATE
tbl_HumanResourcesJobs
SET pr_title = 'Job Description',
pr_text = 'You'll be responsible for implementing, all of the
responsibilities of ....', pr_active = Yes, pr_date = 'September 29,
02006', pr_department = 'Marketing' 
WHERE hr_id = 97 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

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

Reply via email to