Thank you very much Ian, Martin and Al. Your way is much better than my way of thinking for sure.
I appreciate the virtual smack upside the head. Charles > -----Original Message----- > From: Ian Skinner [mailto:[EMAIL PROTECTED] > Sent: Friday, January 07, 2005 12:25 PM > To: CF-Talk > Subject: RE: Dynamically creating multiple pages/rows of images from a > query > > > Something along these lines might get you started. > > <cfset cols = 4><!---number of columns you would like---> > > <cfoutput> > <table> > <tr> > <cfloop query="myQuery"> > <td>#query.column#</td> > > <!---If the remainder of currentRow/cols is zero start a > new row.---> > <cfif NOT myQuery.currentRow MOD cols> > </tr> > <tr> > </cfif> > </cfloop> > </tr> > </table> > </cfoutput> > > Off the top of my head, AKA debugging no doutedly necessary. > This could also be very easily modified to create other > structures to display the output. > > -------------- > Ian Skinner > Web Programmer > BloodSource > www.BloodSource.org > Sacramento, CA > > "C code. C code run. Run code run. Please!" > - Cynthia Dunning > > > > ...-----Original Message----- > ...From: Charles Nahm [mailto:[EMAIL PROTECTED] > ...Sent: Friday, January 07, 2005 9:12 AM > ...To: CF-Talk > ...Subject: Dynamically creating multiple pages/rows of images > from a query > ... > ...Would like to create a preview page(s) of results froma search function > ...from > ...an image catalog. Displaying 1 image per row seems easy enough, but we > ...would like to display 3 images per row and either 3 or 4 rows per page. > ... > ...Is a loop or multiple loops within a loop the only way to output 3 > ...results > ...per row as well as multiple rows? Or am I approaching this from a > ...wrong-headed point of view. My mind tells me it should be much easier > ...than > ...what I'm thinking, but for the life of me I can't see how. > ... > ...Thanks, > ...Charles Nahm > ... > ... > ... > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189671 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

