I don't find I need to do anything to escape a " ' " in text placed in forms.

Someone here explained why, but I don't recall the reason.
I'm using SQL7.

best,  paul

At 08:50 AM 3/26/01 -0600, you wrote:
>I think you could either use the PreserverSingleQuotes function or use
>REPLACE and add an extra apostrophe for each apostrophe.
>
>
>
>-----Original Message-----
>From: andrew kopelman [mailto:[EMAIL PROTECTED]]
>Sent: Monday, March 26, 2001 2:39 PM
>To: CF-Talk
>Subject: Escaping apostrophes
>
>
>Hello,
>
>This must be a basic question, but I found no real answer on the allaire
>forums.
>
>I want to allow users to enter apostrophes in text, which I then save to the
>database.  However, the sql insert will fail as it interprets this
>apostrophe within the text as one of the apostrophes surrounding the text.
>
>Example:
>
>INSERT INTO tblUserComments (userid, usercomment)
>VALUES (12345, 'I don't know what to think')
>
>This fails on the ' in don't
>
>There must be a better solution than HTMLEditFormat.
>
>Thanks in advance.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to