Tutorials
Community
Forums
Careers
EasyCFM.COM ColdFusion Forums
/
Coding Help!
/ CurrentRow MOD cfm
Login
Join
Search
Reply to Discussion
|
New Discussion
<<
previous
||
next
>>
Posted By
Discussion Topic: CurrentRow MOD cfm
theborg72
05-29-2012 @ 10:59 AM
Reply
Edit
Profile
Send P.M.
Powered by
Gravatar
New Member
Posts: 15
Joined: May 2010
hello I'm trying to get a loop. The idea is to just
create a table that shows 5 and 2 lines.
Instead of
1
2
3
4
5
6
I want
12345
space to make advertising
678910
I've made a CurrentRow MOD and got to the lines, but
not the space
<table width=
"500"
border=
"1"
>
<tr>
<cfoutput query=
"testrec"
startRow=
"#StartRow_testrec#"
maxRows=
"#MaxRows_testrec#"
>
<td>
#testrec.tblOnskelista#
</td>
<CFIF testrec.CurrentRow MOD 5 IS 0>
</TR>
<TR>
</TR>
</CFIF>
</cfoutput>
</table>
I try to make an easy script to be able to use it in
different places.
Webmaster
06-09-2012 @ 11:39 PM
Reply
Edit
Profile
Send P.M.
Powered by
Gravatar
Administrator
Posts: 4533
Joined: Jan 2002
to be honest with you.. you would be better off handing this via css.
<div id="foo">
<cfloop query="yourQuery">
<div id="row#currentrow#">
<!--- output your data --->
</div>
</cfloop>
</div>
<style media="all">
#foo div { width: 20%; float: left; margin: 0px; padding: 0px; }
</style>
Something like that would give you better results and less code.
Pablo Varando
Senior Application Architect
EasyCFM.COM, LLC.
904.483.1457 \\ mobile
webmaster@easycfm.com
\\email
\m/ (>.<) \m/
--- rock on ---
Coding Help!
-- Coding Help!
-- Application Beta Testing Area!
-- Good Coding Tips!
Other Adobe Products
-- Dreamweaver
-- Flash Development
-- Flex Development
Database Help
-- MS Access Related Issues
-- MS SQL Server Related Issues
-- MySQL Related Issues
-- Oracle Related Issues
-- Other
ColdFusion Server/Applications
-- ColdFusion Server
-- ColdFusion Applications
General Area
-- General Discussion
-- New Users Area!
-- Feedback Area
-- Site Stuff!
-- Polls
Code Conversion Help
-- ASP to CFML
-- CGI to CFML
-- .NET to CFML
-- JSP to CFML
-- PHP to CFML
ColdFusion Hosting
-- ColdFusion Hosting
EasyCFM.COM Tutorials Area
-- Tutorial Requests!
-- Bug Reports!
Free ColdFusion Hosting
-- Hosting Support
-- Requests
Developers Work Showcase!
-- Work Showcase!
ColdFusion Jobs / ColdFusion Careers
-- ColdFusion Related Jobs
Administrators & Moderators
-- Administrators & Moderators Only
--- Log In
--- Register
--- Search