Probably and I have a normal next previous module I have been using for years
but as I mentioned in my first message they want it like this << < > >> which
is a 
tad different then Next/Previous... don't worry about it i will figure it out
eventually...

[EMAIL PROTECTED] writes:
>It would probably just be easier to write it yourself, its pretty 
>basic..
>Quick dirty example below..
>
>-----------------------------------------------------
>
><cfparam name="MyStartRow" default="1">
>
><cfset MyMaxRows = 10>
>
><cfif MyStartRow is 0>
>       PROBLEMS!
>       <cfabort>
></cfif>
>
><cfquery name="MyQuery" datasource="MyDataSource">
>       SomeQuery
></cfquery>
>
><cfoutput query="MyQuery" StartRow="#MyStartRow#" 
>MaxRows="#MyMaxRows#">
>       Some output
></cfoutput>
>
><cfif MyStartRow - MyMaxRows gt 0>
>       <cfoutput>
>               <a href="MyPage.cfm?MyStartRow=#Evaluate(MyStartRow -
>MyMaxRows)#">Previous #MyMaxRows#</a>
>       </cfoutput>
></cfif>
>
><cfif MyStartRow + MyMaxRows lt MyQuery.RecordCount>
>       <cfoutput>
>               <a href="MyPage.cfm?MyStartRow=#Evaluate(MyStartRow +
>MyMaxRows)#">Next #MyMaxRows#</a>
>       </cfoutput>
></cfif>



~~~~~~~~~~~~~~~~~~~~~~
Kelly Matthews
Senior Programmer
[EMAIL PROTECTED]
http://www.allsoldout.net
703.387.4000 x 35
~~~~~~~~~~~~~~~~~~~~~~

______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to