LOL. I have a feeling the real brainteaser here might be decrypting what exactly you are trying to do :)
Maybe you can explain why you are storing the images the way you are and it's limited to five columns. You aren't trying to control your display on screen in some work around method using the db columns to help you format are you :) Mike -----Original Message----- From: richard groen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 05, 2007 1:57 PM To: CF-Newbie Subject: create dynamic table with max columns Hi all, I got one brainteaser (well...for me). I have a database with, lets say 100 images, these images are 'dynamic' e.g. it can be 100 but also 151 images. My question is: How can i make a dynamic table where I can set that the maximum columns to 5. So when parsing the images (generating the query output), then the function fills up a one row with 5 images (all in a different column) and the 6th image is at a new row etc. etc. I just cant figure it out. Hope you can help! thanks in advance. Grt, Richard ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3029 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
