Displaying specific range of database items

I’m stuck trying to figure out this logic.

For example, there are 5 user levels. Each level has 100 items. One block is 10 items in the level. So 10 blocks per level. In the user database there are fields for user level number and block number. If the current user is level 1 block 1 then items 1-10 of the data that contains level 1 should be displayed. If the user is level 1 block 2 then items 11-20 should be displayed. If current user is level 3 block 1, then items 1-10 of the data that contains level 3. I can’t figure out how to make that work.

Any ideas?

Just use items from and items until

Although surely there’s an easier way - just relate the block to the User level, and only load the relevant blocks.

I’ll have to figure out how to do that. Any tips?

This topic was automatically closed after 70 days. New replies are no longer allowed.