Multipage

They have: 10 posts

Joined: Feb 2004

i dont know how to explain my problem so i'll try my best,

basically ive made a guestbook script in PERL and i have an array called @posts each portion of the array is a different post @posts[1] is post number 1, @posts[20] is post 20,

so i was thinking how would i go around redesigning my script so it mwould display the first 10 posts then have a link on the bottom of the page that when clicked on would display the next 10 posts.

thankx

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Set a limit and a flag?

I haven't worked in Perl for ages, but I think basically you set a limit variable, then limit your query depending on the current state (flag).

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.