This was my previous suggestion.
<cfloop query = "qEvents">
<cfscript>
objEvents.#currentrow# = eventid[currentrow];
ThisDate = event_startdate[current_row];
ctr = 1;
while (ThisDate lte event_enddate[currentrow]) {
objEvents.#currentrow#.date#ctr# = ThisDate;
ctr = ctr + 1;
ThisDate = DateAdd("d", 1, ThisDate);
}
This line,
objEvents.#currentrow# = eventid[currentrow];
equates to this line,
<CFSET ObjEvents[currentrow] = qEvents.event_id>
and both are probably wrong. Mine might be wrong because it
would start a variable name with a number, and yours has array
notation for a structure instead of dot notation. Try this:
<CFSET ObjEvents.Row#currentrow# =
qEvents.event_id[currentrow]>.
That should give you things like
ObjEvents.Row1=123
ObjEvents.Row2=456, etc
In your inner loop, where I suggested this:
objEvents.#currentrow#.date#ctr# = ThisDate;
you want
<cfset objEvent.Row#currentrow#.date#nCounter# =
ThisDate>
That should give you things like
objEvent.Row1.date1 = 2008-01-01
objEvent.Row1.date2 = 2008-01-02
etc
Do it piecemeal and look at your results with <cfdump
var="#objEvent#">