Since CF runs procedurally (top to bottom) the update will not run until the CFmail is completed if the update is below the CFmail in the page.
J.J. On 11/20/07, L Schaff <[EMAIL PROTECTED]> wrote: > Hi, > > I'm selecting email addresses from a database where the field "emailsent" is > null. After I run the cfmail, I update the field to the date the email was > sent. > > Is there a danger of the update query running before the cfmail is finished? > Is there a solution for this? > > Many thanks! > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3153 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
