![]() |
Another php/sql question about categorizing rows
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? |
Quote:
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. . |
Quote:
|
I dunno what you're coding, but your questions make me wonder if you've considered using something like laravel ?
Most of your questions, are things this framework will easily take the difficulty out of. |
Quote:
|
Quote:
I honestly I have only been playing with php for about 4-6 months, that’s why so many questions about errors and how-to do certain things. |
All times are GMT -7. The time now is 06:24 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123