thanks very much, Jerry!...you're a prince for taking the time...and I can
actually follow a lot of that:)...I'm going to work on it right now and
hopefully I can implement your suggestions and code ideas...thanks agin...
-john
>Well, I'll try this again (a link in outlook killed my first gmail reply)
>
>First, build a sample of the output as you want it to look in plain
>HTML. Get it right before you start.
>
>Next, figure out the CF tags and functions that can help do this. This
>is not by any means the best or only way, it just tries to follow the
>logic you laid out in cf code. And it untested.
><table>
><cfset startDate="06/01/2005">
><cfset numberOfDaysInMonth=day(dateAdd("d",-1,dateAdd("m",1,startdate)))>
><cfloop index="d" from="1" to="#numberOfDaysInMonth#" step="1">
><cfset curDate=dateAdd("d",d-1,startDate)>
><tr><td>dateFormat(curDate,"Mmmm dd")#</td></tr>
><cfquery name="sessions" dbtype="query">select * from bigQuery where
>sessionDate=#createODBCDate(curDate)#</cfquery>
><cfif sessions.recordCount gt 0>
><cfloop query="sessions">
><cfoutput><tr><td>#sessionStartTime# #sessionType#
>#evaluate(sessionCapacity-sessionBooked)#</td></tr></cfoutput>
></cfloop>
><cfelse>
><tr><td>No sessions today</td></tr></cfif>
></cfloop>
></table>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:907
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54