I am outputing the results of a query--
<cfquery datasource="578.fbi" name="events">
SELECT eventID, day, month, year, title, body
FROM event
WHERE month = #CurrentMonth# AND year = #CurrentYear# ORDER BY day ASC
</cfquery>
into a table--
<table border=1>
<tr>
<cfoutput query="events" group="day">
<td valign="top">#day#
<ul>
<cfoutput>
<p><li>#title#
</cfoutput>
</ul>
</td>
</cfoutput>
</tr>
</table>
I need the cells to run horizontally and start a new row after 5 cells. The desired effect is a calendar layout. Note-One day can have many events, hence the group.
I have tried a few ideas, including the possibility of using a distinct row count on Day column and using conditional statements to include more than one cfoutput with startrows and maxrows. However I could not get a distinct record count due to error--Microsoft][ODBC Microsoft Access Driver] You tried to execute a query that does not include the specified expression 'day' as part of an aggregate function.
I am running out of ideas. Any help would be appreciated.
<cfquery datasource="578.fbi" name="events">
SELECT eventID, day, month, year, title, body
FROM event
WHERE month = #CurrentMonth# AND year = #CurrentYear# ORDER BY day ASC
</cfquery>
into a table--
<table border=1>
<tr>
<cfoutput query="events" group="day">
<td valign="top">#day#
<ul>
<cfoutput>
<p><li>#title#
</cfoutput>
</ul>
</td>
</cfoutput>
</tr>
</table>
I need the cells to run horizontally and start a new row after 5 cells. The desired effect is a calendar layout. Note-One day can have many events, hence the group.
I have tried a few ideas, including the possibility of using a distinct row count on Day column and using conditional statements to include more than one cfoutput with startrows and maxrows. However I could not get a distinct record count due to error--Microsoft][ODBC Microsoft Access Driver] You tried to execute a query that does not include the specified expression 'day' as part of an aggregate function.
I am running out of ideas. Any help would be appreciated.