Would "x" be the line number?
At 11:12 AM 5/15/2002 -0600, you wrote:
>You can reference the query by bracket syntax and do a nested loop as such:
>
><!--- Query name = qResults --->
>
><cfset cols = 4>
><cfset rows = Int(qResults.Recordcount/4)+1>
>
><cfloop from="1" to="#rows#" index="i">
> <tr>
> <cfloop from="1" to="#cols#" index="j">
> <cfset currentIndex = i + ((j-1)*rows)>
>
> <cfif currentIndex gt qResults.Recordcount>
> <td> </td>
> <cfelse>
> <td>#qResults.fieldName[currentIndex]#</td>
> </cfif>
> </cfloop>
> </tr>
></cfloop>
>
>
>NOTE, that code is not tested. It's just give you the idea/theory behind
>it. I hope that makes sense.
>
>
>
>Ben Johnson
>Hostworks, Inc.
>
>
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists