Hi, Im just a noob at php and am trying to write some code to edit items in a database. I have a page which pulls out news items from a db. To edit or update these items I have come up with the following workflow:
- Recall article from database
- Create temp variables and assign then to database results
- Set up the data entry form
- Assign the temp variables into the form (i.e. popular form with existing news item)
- Run update query
Apologies if this doesn't make sense but I'm just curious to know if i am thinking this through the proper way! I don't have any code for this yet but I can post some once I get started.
- Recall article from database
- Create temp variables and assign then to database results
- Set up the data entry form
- Assign the temp variables into the form (i.e. popular form with existing news item)
- Run update query
Apologies if this doesn't make sense but I'm just curious to know if i am thinking this through the proper way! I don't have any code for this yet but I can post some once I get started.