Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / April 2005



Tip: Looking for answers? Try searching our database.

PLEASE I Need Help with CurrentRow Issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
murpg - 29 Apr 2005 18:34 GMT
I would like to display 6 records in row then go to the next row.  I would like
to do this without using a table.  I would also like to me able to drop the
hyphen - after the 6th record and the last row.  I am working with a table now.
I would like to discard the table.  Here is my code.

<table border="0">
  <tr> <cfoutput query="Recordset2">
      <td align="center">
     <a href="#Recordset2.BAFilename#?ID=#Recordset2.ID#<cfif
recordset2.tablealign IS
""><cfelse>&tablealign=#Recordset2.tablealign#</cfif><cfif recordset2.colnbr IS
""><cfelse>&colnbr=#Recordset2.colnbr#</cfif><cfif Recordset2.linenbr IS
""><cfelse>&linenbr=#Recordset2.linenbr#</cfif>" <cfif url.ID EQ
#RecordSet2.ID#>style="color:##008062"<cfelse>style="color:##666699"</cfif>>#Rec
ordset2.PortfolioTexT#</a> -
     </td>
      <cfscript>
  if (Recordset2.CurrentRow mod 6 eq 0 AND NOT Recordset2.CurrentRow eq
Recordset2.RecordCount) {
    writeoutput("</tr><tr>");
  }
</cfscript>
  </cfoutput> </tr>
</table>
Kronin555 - 29 Apr 2005 20:32 GMT
<cfoutput query="recordset2">
#whatever#<cfif recordset2.currentrow mod 6 neq 0> - <cfelse><br></cfif>
</cfoutput>

Also, you don't need to crosspost. One post is sufficient.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.