Question
Structure/Array Help
I need help formatting an array to store the following date ranges per room.
DATABASE Format
Room StartDate EndDate
------------------------------------------------------------------------------
Blue 10/23/2006 2/2/2007
Green 10/25/2006 10/26/2006
Yellow 11/2/2006 11/2/2006
Yellow 11/10/2006 11/13/2007
I am trying to use the following loop to get the ranges for each room, but how then do I apply that to an array for each record of each room and then append to the array.
<cfloop from="#GetDays.StartDate#" to="#GetDays.EndDate#" index="x">
<cfoutput>#dateformat(x, "MM/DD/YYYY")#</cfoutput><br>
</cfloop>
Thanks in advance for any help!!