Say I have a form which offers blank textboxes which when populated and subitted runs an "INSERTS INTO..." statement into the database. Works like it should. Now I want to update the same entry. My database is keyed on a customer number (ex. "123456"). I can open a form which prompts for the customer number to update, and it offers a list of fields I can update. It works fine, but the catch is I want to populate the update form with the existing values stored in the database, so the updater can see which values need to be updated.
Can this be done? I can update just fine, but I can't figure out how to show the current fields before updating.
I thought this would require a two step process, like a simple query page where you enter the customer number to update. Once submitted MySQL would reply and you would be shown an UPDATE form containing all of the values related to the customer number (query). Then you could make your updates and resubmit the changes.
Any help will be very appreciated.
Thanks.