Simple Machines Community Forum

General Community => Scripting Help => Topic started by: Mihkel on November 06, 2009, 11:31:49 AM

Title: Storing data to previous pages
Post by: Mihkel on November 06, 2009, 11:31:49 AM
Okay, maybe the headline is bit wrong but what i want to do is this:

I have textbox which sends data to my databases, you can also view what people have entered etc. What i want to do is this. Lets say i have fixed table height about 1000px. I don't want that script stores more, better if script moves ones to page 2 etc. example is here http://tre.ee/?plk=1 , My site planet.frihost.org . Thanks for helping.

PS the textbox need 10 or more chars to post and name 4 or more
Title: Re: Storing data to previous pages
Post by: Arantor on November 07, 2009, 07:25:53 AM
So how does this script work? We can't possibly help change it if we have no idea how the code works.

Ultimately though your request will come back to using LIMIT in the SQL used to get data, to get chunks at a time. Might be worth searching 'pagination in SQL' in Google.