Your code, please?

  ----- Original Message ----- 
  From: Clark, Aimee 
  To: CF-Talk 
  Sent: Tuesday, November 26, 2002 3:02 PM
  Subject: Using a counter variable


  I have an application in which I want every 7th record closed in a table to
  generate an email asking the user to participate in a survey. 

  I have <cfset counter = 0> in the application.cfm file.

  I have <cfset counter = counter +1> in my action page right after an update
  that is done to the table.

  Then I have <cfif counter EQ 7>
  execute generating email
  then it resets the counter back to 0

  However my counter is not incrementing at all. It just keep staying at 1.
  I'm not sure why. Can someone provide some assistance with this?

  Thank you,
  Aimee' Clark
  Web Developer
  Stinson Morrison Hecker

  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to