Question
preservesinglequotes question
I have the following dynamically created sql statement:
update [tblemployees] set [FirstName]='John', [LastName]='O'neil' where employeeID = 1
I've found that it will only work if I use the preservesinglequotes in following code:
<cfquery>
#PreserveSingleQuotes(str)#
</cfquery>
The problem is that it blows up when I have a user-entered single quote such as in the O'neil last name.
Does anyone have a solution for this?