if currentrow mod 2 -> end your table row and start a new one

On Thu, Feb 21, 2008 at 7:49 PM, Colman, Richard
<[EMAIL PROTECTED]> wrote:
> I wish to dynamically populate table across columns and rows, like:
>
>  +------------+-------------+
>  |#query.row1#| #query.row2#|
>  +------------+-------------+
>  |#query.row3#|#query.row4# |
>  +------------+-------------+
>  |#query.row5#| etc. etc.
>
>  where the number of rows returned by the query is uncertain, but I
>  want a 2 col by X rows display of the results.
>
>  I am not sure how to do this. I think it might be something like
>
>  [do the query]
>
>  [stick the results into an ordered list so I can reference individual
>  members of the list]
>
>  [loop over the list]
>
>  [output the results like:
>
>  +------------+-------------+
>  |#list1#     | #list2#     |
>  +------------+-------------+
>  |#list3#     | #list4#     |
>  +------------+-------------+
>  |#list5#     | etc. etc.
>
>  but this seems needlessly complex. Why not just loop over the query, but
>  I am not sure how to spread the results across two columns as shown
>  above.
>
>  Is there a simpler way to approach it?
>
>  Rick Colman
>
>  

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299656
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to