Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-01-2022, 11:46 AM   #1
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,124
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?
__________________
SOMETHING EXTREME IS COMING SOON!
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-01-2022, 01:13 PM   #2
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
Old 06-01-2022, 03:45 PM   #3
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,124
Quote:
Originally Posted by sarettah View Post
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.


.
Awesome, thank you!
__________________
SOMETHING EXTREME IS COMING SOON!
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2022, 08:44 AM   #4
machinegunkelly
Confirmed User
 
machinegunkelly's Avatar
 
Join Date: Jun 2003
Posts: 3,279
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.
__________________
dead.
machinegunkelly is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2022, 09:45 AM   #5
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
Quote:
Originally Posted by machinegunkelly View Post
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.
It's really better if he learn the fundamentals before using a framework. We've interviewed guys that only coded with frameworks and when you put them in front of 'real' PHP they freeze like a deer in front of headlights.
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2022, 08:38 PM   #6
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,124
Quote:
Originally Posted by k0nr4d View Post
It's really better if he learn the fundamentals before using a framework. We've interviewed guys that only coded with frameworks and when you put them in front of 'real' PHP they freeze like a deer in front of headlights.
This.

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.
__________________
SOMETHING EXTREME IS COMING SOON!
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
categorizing, page, rows, question, add, crud, extra, categries, data, edit.php, options, suggest, hardcode, arises, predefined, thinking, checkboxes, simplest, system, section, php/sql, specifically, bulk, list, clicking



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.