Here's the whole code block for reference. It displays three months of 
events at a time:

QUERY:

<cfquery name="calendar">
SELECT
id, event_date, month(event_date) as theMONTH, event_name, event_pic
FROM stpaul_events
WHERE month(event_date) >= #month(now())#
and month(event_date) < #threemonths#
ORDER BY event_date ASC
</cfquery>

OUTPUT BLOCK

<cfoutput query="calendar" group="theMONTH">
<h4>#LSDateFormat(calendar.event_date,'MMMM - YYYY')#</h4>

<div id="eventBODY">
  <cfoutput>

    <cfif CurrentRow NEQ 1 AND Day(calendar["event_date"][CurrentRow])
     NEQ Day(calendar["event_date"][CurrentRow - 1])>
     <cfset myCSS = "eventWHITE">
    <cfelse>
    <cfset myCSS = "eventYELLOW">
    </cfif>

  <div class="#myCSS#"> - Lots of stuff here - </div>
</cfoutput>

-- 
-----------
Les Mizzell

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200314
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to