Hi,
I have a basic CF calendar application which uses an Access DB backend. What I need to do is write a CFQUERY Insert query which will loop through all the actual calendar dates starting April 1 of this year and ending Dec 31st. Is there a server variable or some other variable that is aware of this that I can loop through, so psuedocode like:
<cfloop from "foo" to "foo" where the server date GT March 31st 2006 AND LT January 1st 2007>
<cfquery datasource="" name="insert">
<!--- Insert stuff here, including current row in loop with variable for appropriate date --->
</cfquery>
</cfloop>
Any help would be much appreciated!
Thanks!
RR
I have a basic CF calendar application which uses an Access DB backend. What I need to do is write a CFQUERY Insert query which will loop through all the actual calendar dates starting April 1 of this year and ending Dec 31st. Is there a server variable or some other variable that is aware of this that I can loop through, so psuedocode like:
<cfloop from "foo" to "foo" where the server date GT March 31st 2006 AND LT January 1st 2007>
<cfquery datasource="" name="insert">
<!--- Insert stuff here, including current row in loop with variable for appropriate date --->
</cfquery>
</cfloop>
Any help would be much appreciated!
Thanks!
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)