I am running a query that may have up to 300 hits. I only want to return 25 of them at a time, giving the user the option of viewing the next 25 or the previous 25. Is there a way to do this is coldfusion
<!--- If user just entered this page, we assumed no CurStartRow is passed. Hard code next start row --->
<CFIF NOT IsDefined("CurStartRow">
<CFSET NextStartRow = 26>
<CFELSE>
<!--- If --->
<CFIF CurStartRow GTE 25>
<CFSET StartRow = CurStartRow - 25>
<CFELSE>
<CFSET StartRow = 1>
</CFIF>
<CFSET NextStartRow = CurStartRow + 1>
</CFIF>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.