Ask a Question related to Macromedia ColdFusion, Design and Development.
-
t.d. #1
Skip record set results
Hi, just wondering if anyone knows a simple way to filter out the 1st 5 records
in a record set. I'm trying to get a page to display the 1st 5 records from a
database, with another table which will display the next 5 underneath it. The
problem I'm having to getting the proper filter to skip the first 5. Appreciate
it if anyone can help.
t.d. Guest
-
skip path prune
How do you use the prune function to skip a printing all of the contents of a folder? It will not print folder 3 but does print the contents of... -
Is there a CFMX tag to skip CF processing?
We've got large access log files in our secure intranet. They're stored as ..TXT files, and not being processed by CFMX, which in itself is not an... -
RIS - skip auth. proces
Hi there, is there any way to skip the authentication on the beginning of a RIS installation proces ??? regards, Christian -
Skip to chapter...
Being a great one for learning things from the middle on out, I would like to make a button in Flash MX for my plain-HTML website. I'm familiar... -
Delay/Skip Rollover
I have a menu bar, with a delayed rollover action. That keeps the user from activating another button by cutting corners. There is one problem... -
cgsj_usa@yahoo.com #2
Re: Skip record set results
There are startrow and endrow attributes included with the cfoutput tag. You can use these to limit your results. Hope that this helps. Thanks.
Chris
cgsj_usa@yahoo.com Guest
-
t.d. #3
Re: Skip record set results
I'm a little unsure where to put them though, and what to let them equal to.
What I have at the moment is: <cfoutput> <cfoutput query='PrevEvents'
startRow='#StartRow_PrevEvents#' maxRows='#MaxRows_PrevEvents#' >
<tr> <td
width='20' height='15'>#PrevEvents.Date##PrevEvents.Title#</td>
<td width='125' height='15'>&nbsp;</td>
<td width='10' height='15'><img
src='/Images/bulletpurple.png' name='l1' width='10' height='10' id='l1' /></td>
</tr>
</cfoutput> </cfoutput>
t.d. Guest
-
cgsj_usa@yahoo.com #4
Re: Skip record set results
Try this:
<cfquery...
...</cfquery>
<cfoutput query = "queryname" startrow = "1" endrow = "5">
whatever the columns are
</cfoutput>
<cfset startrow_prevevents = "6" />
<cfset maxrows_prevevents = "10" />
<cfoutput query="PrevEvents" startRow="#StartRow_PrevEvents#"
maxRows="#MaxRows_PrevEvents#" >
<tr>
<td width="20" height="15">#PrevEvents.Date##PrevEvents.Title#</td>
<td width="125" height="15"> </td>
<td width="10" height="15"><img src="/Images/bulletpurple.png" name="l1"
width="10" height="10" id="l1" /></td>
</tr>
</cfoutput>
Hope that this helps. Thanks.
Chris
cgsj_usa@yahoo.com Guest



Reply With Quote

