Jump to content
Sign in to follow this  
Glorifindal

Group size question

Recommended Posts

Hi there

I can limit the amount of records displayed by group size ="10 (for only displaying 10 records at a time) but how then do I display the next group of records ? I would need a button that does something like "Display next set of 10 records from previous search query"

Anyone know of how such a button would work ?

Glorifindal

Share this post


Link to post
Share on other sites

I would just return all of the results and do a for loop to display them and limit it to 10 iterations. the returned results from FX.php have a pointer called NextRecord or something that allows you to just loop through each record and display it, then when you want the next 10, just pickup where you left off. This could also be done with indexing because the results are just a big associative array.

Share this post


Link to post
Share on other sites

just remembered, there is also the ->FMSkipRecords() attribute if you want to run another whole query you can just have the php script keep track of how many records you have skipped (ie what page you're on) and skip that many records

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    siroos12 
×

Important Information

By using this site, you agree to our Terms of Use.