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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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