PHP form for editing records

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
edawson003
Forum Contributor
Posts: 133
Joined: Thu Aug 20, 2009 6:34 am
Location: Los Angeles, CA - USA

PHP form for editing records

Post by edawson003 »

I would like to set a form that would pull down record data from a sql table, populate the appropriate data fields and allow the user to make changes to certain fields and then overwrite the same record in the sql table. Can someone point me to tutorial on how to set that up?

I am half way there because I know how to call existing data from a sql table.

Would also like the ability to delete records to. I'll bet this would probably be included in the same tutorial.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: PHP form for editing records

Post by s.dot »

Populate the form fields with the SQL result data using the value="" attribute for <input> fields, checked="checked" for checkboxes, selected="selected" for radio buttons and just put the value inside of textarea boxes.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply