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
https://forums.phpfreaks.com/topic/71387-assign-10-records-to-category/
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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.