Jump to content

Assign 10 records to category


ch0ps

Recommended Posts

DB has 110+ records, which need to organized into groups of 10 records and assigned a category. Category names can be anything (category 1, category 2, etc).

 

Records contain general info about registered users: name, email, phone

 

Client would like to select category name, and view only 10 records.

 

Assistance is greatly appreciated!

Link to comment
Share on other sites

I'm unsure as to how to seperate the records in groups of ten, and dynamically assign them to a category. The end result would be a record which was automatically added to an auto incremented category based on when record was added to the db. After 10 records are added, a category would be assigned, and then the next set of 10 records would begin the next category.

 

I need to assistance figuring how to create the categories automatcally, instead of having to manually assign each record that comes in to a category.

Link to comment
Share on other sites

I agree, Pagination is a simple solution to display 10 records per page. thanks

 

However, it's possible that my client will want more flexibility down the road (no way!), I think a more robust method is preferred. In this scenario, assigning the records to a category is the main goal, giving the records a page name suffices to display the records, but offers a lot of limitations.

 

But thanks for reminding me that the simplest solution is usually the best option.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.