View Single Post
Old 06-01-2022, 01:13 PM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,060
Quote:
Originally Posted by Publisher Bucks View Post
Specifically, I'm wanting to add a 'bulk' categorizing section to my CRUD system and I'm thinking that using checkboxes may be the simplest way of doing this? My question is this, what would be the most simple (and secure) way of adding a bunch of predefined categories to a page and going through a list, clicking each checkbox that matches the rows data?

Should I also have another area in the CRUD that will allow me to add extra categries as the need arises or, just hardcode them in the edit.php page?

Any thoughts on this vs. any other options you might be able to suggest?
You would probably be best to table your categories. Then have an add/change/delete screen for maintenance of the categories.

Then you can just loop through the categories table to make your checkbox screen.

Disclaimer: If you only have 1 or 2 categories then by all means hardcode them into the file but if you are going to have a fairly large list and expect to be adding to and changing them then what I said stands.


.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote