ok i looked at this example here:
http://www.dwfaq.com/Snippets/snippet_details.asp?CatID=13&SnipID=276
its been a while and i need some refreshers...
thanks

it order a list in a table like so:
01 02 03 04 05
06 07 08 09 10
11 12 13 14 15

i would like to do this instead:
01 04 07 10 13
02 05 08 11 14
03 06 09 12 15

i can do it if i use 5 seperate output queries
but not in a nested loop like:


<table border="0" cellspcing="0" cellpadding="0">
<!--- Set default value to use in our loop --->
<cfset EndRow=0>
<!--- Set the max number of record to display per row. In this case 5. --->
<cfset ToDisplay=5>
<!--- Start loop and define the stop point --->
<cfloop condition="EndRow lt getAz.RecordCount">
<!--- Set the conditions for our inner loop --->
<cfset StartRow=EndRow+1>
<cfset EndRow=EndRow+ToDisplay>
<cfif EndRow gt getAz.RecordCount>
<cfset EndRow = getAz.RecordCount>
</cfif>
<tr>
<cfloop query="getAz" startrow="#StartRow#" endrow="#EndRow#">
<td><cfoutput><input type="checkbox" name="#getAz.AssetCategoryDesc#"
value="checkbox"> #getAz.AssetCategoryDesc#</cfoutput></td>
</cfloop>
</tr>
</cfloop>
</table>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247234
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to