<cfloop from="1" to="#int(request.numTRAVEL)#" index="idx">
<cfquery name="WRITE_ENROLL" > INSERT INTO mytable ( myNAME ) VALUES ( <cfqueryparam cfsqltype="cf_sql_varchar" value=#form["myNAME" & idx]#> ) </cfquery> </cfloop> On 5/21/07, Les Mizzell <[EMAIL PROTECTED]> wrote: > Doing a multiple row insert > > > < > > Works fine until somebody enters "Bob O'Hara" into the form. I'm having > a little trouble trying to escape the single quote in "O'Hara" while > keeping the rest of the query intact. > > If if was a single record insert something like the below would work fine: > > '#Replace(form[myNAME],"'","''","ALL")#' > > Suggestions? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278766 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4