Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

(dkubb) Re: (2) last 10 ... next 10?

by dkubb (Deacon)
on Mar 28, 2001 at 11:30 UTC ( [id://67773]=note: print w/replies, xml ) Need Help??


in reply to last 10 ... next 10?

I assume you are fetching the results from a database using DBI, in which case you should take alfie's advice, and look into the LIMIT command, if your database supports it. However, most have something similar in concept.

As for displaying the HTML results, you can combine HTML::Template and HTML::Pager to get the results you want. HTML::Pager was designed for exactly the purpose you describe, and is quite slick. It abstracts alot of the details for maintaining state across each script execution.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://67773]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found