Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

previous and next navigation

Status
Not open for further replies.

hisham

IS-IT--Management
Nov 6, 2000
194
How can display $ records per page with 'previous' and 'next' navigation at the request of the users.
Thanks in advance.
 
How are you accessing the records? MySQL, a flat text file, a directory of individual record files?...

If using MySQL, use 'LIMIT'

If a flat file, use a 'FOR' or 'WHILE' loop

The navigation links will simply feed an limit to the LIMIT or FOR/WHILE operations.
 
I looked at easy_browse.inc. The "$amm" argument is just the number of rows/records you want displayed per page. The prototype and an example usage from the .inc file:
Code:
function pageBrowser($totalrows,$numLimit,$amm,$queryStr,$numBegin,$begin,$num)

$navigate = pageBrowser($totalrows,10,10,"&name=value",$_GET[numBegin],$_GET[begin],$_GET[num]);
What's not working?

I may just keep that file around for future use. Thanks for the link. --
JR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top