PHP Code for Edit Database Form

I have a database set up and populated, now i’m trying to figure out how to make a form where the administrator can type in a first name, last name and email, click edit, and then all the person’s info will come up in a form below where the admin can edit whatever they want and then save it to the database.

Any help would be much appreciated!

You can create form with text fields and two buttons, say “search” and “save”. When you press “search” button, php script will query database by entered criteria (name, email) and if matches found - populate results to second part of form for editing. When “save” button is pressed, php script would check for entered data and update info in the database (again, using criteria from first part of form, to identify record that need to be updated). Or, if you have some id field in this table, you can save it in a hidden field and update record by this id.

Sponsor our Newsletter | Privacy Policy | Terms of Service