troubleshooting Question

Coldfusion Horizontal-"loop" part2

Avatar of Panos
PanosFlag for Germany asked on
Web ServersColdFusion Language
16 Comments2 Solutions335 ViewsLast Modified:
Hello experts.
On this page:https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Cold_Fusion_Markup_Language/Q_24970609.html  i have a solution to build a coldfusion horizontal loop.
The solution is :
<cfset multiple = 4>
<cfset counter = 0>
<cfoutput query="queryartikel" startRow="#StartRow_queryartikel#" maxRows="#MaxRows_queryartikel#">
  <cfset counter = counter+1>
  <td>#items.name#</td>
  <cfif counter MOD multiple EQ 0></tr><tr></cfif>
</cfoutput>
The problem i have now is that when the outputs f.e are 6 i have in the first row 4 td and in the second 2 td.
In ff i have not problems in design but in other browsers it seems to cause problems.
Any help?
ASKER CERTIFIED SOLUTION
azadisaryev

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 16 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 16 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros