Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
murpg #1
PLEASE I Need Help with CurrentRow Issue
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#<c fif
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>styl e="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>
murpg Guest
-
CurrentRow problem in a random question list
Hi: I found a free source code of a coldfusion app and it works very fine and shows a list of random questions form a database but the prblem is it... -
Help PLEASEEEEEE With CurrentRow Issue
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... -
CurrentRow Problem
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... -
CurrentRow
In the tutorial the author says: The CurrentRow variable is one of a few variables that ColdFusion automatically exposes that provide information... -
CFLOOP/CURRENTROW
I have a LOOP that runs over a query and I use CURRENTROW so that I can then use MOD on it so I can utilize repeating ARRAY data to change the color... -
Kronin555 #2
Re: PLEASE I Need Help with CurrentRow Issue
<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.
Kronin555 Guest
-
murpg #3
Re: PLEASE I Need Help with CurrentRow Issue
Sorry about the cross posts I was desperate to get this done. Thank you for your help.
murpg Guest



Reply With Quote

