Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Viewing data one page at a time

by spatterson (Pilgrim)
on Feb 29, 2008 at 15:59 UTC ( [id://671197]=note: print w/replies, xml ) Need Help??


in reply to Viewing data one page at a time

You need to use offset with limit, to select where in the results to display from. You should also order the SQL results by some useful field or they will simply show in database insertion order.
my $results = $db->selectall_arrayref('SELECT word ,line FROM dickens +WHERE word="$concordance" ORDER BY line LIMIT 50 OFFSET 50');

just another cpan module author

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-25 14:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found