you could use a dynamic value for the STARTROW attribute of CFOUTPUT. have a
var called #startrow#. CFPARAM it to 1. the MAXROWS attribute of CFOUTPUT
should always be 10.
then the link to page 2 passes #startrow# as #startrow# + 10 so it starts at
record 11. it will only show 10 total because MAXROWS is fixed. the link to
page 3 has #startrow# + 20, etc. you can build the list of pages dynamically
this way.
you can probably figure it out from there.
-----Original Message-----
From: W Luke [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 10:43 AM
To: CF-Talk
Subject: Determining no. of pages in results
Hi,
I have a query which searches a table, and displays results, 10 at a time.
How can I display the page-numbers though, so users can scroll through to a
page further along the query (1,2,3,4 etc)?
To get the number of pages, all I've done is:
<cfset noPages = round(getads.recordcount / 10>
Any ideas?
Thanks.
Will
--
[EMAIL PROTECTED] -=- www.lukrative.com
Local-Advertising -=- www.localbounty.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists