Hopefully this will point you in the right direction.  It's a cleaned up
snippet from a page I had that output in a column format.  Notice where the
code says "MOD 4".  This is where you can determine how many columns you need. 
This code does not fill in the extra table cells at the end of the query.  If
you need this to be done, I can root around for my calendar code that made nice
bordered complete tables.

<table border=0 cellpadding=1 cellspacing=0>
        <tr>
        <cfoutput query="queryName">
                <td>#item#</td>
                <cfif NOT CurrentRow MOD 4>
                        </tr><tr>
                </cfif>
        </cfoutput>
        </tr>
</table>

HTH,
Sharon

At 03:05 PM 4/27/2000 -0400, Shannon Carr wrote: 
>
> I am trying to generate a cfloop query that will query a table and ouput =
> the results in a table 4 columns wide.  The data are thumbnail photos. =
> The problem I am having is getting items to populate 1 row then move to =
> the next row until the table is complete.
>
> Any help would be appreciated.
>
> Thanks,
> S. Carr



------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to