Page 1 of 1

need some help with editing datase entries via a form

Posted: Fri Oct 24, 2003 11:22 am
by belovedone
How would I go about editing a row in a database via a form? I know how to get the information in the text boxes. But what i would like to do is list all the rows in the database and then if i see that one of the rows needs editing or deleting i'll have 2 links under each entry (edit and delete)...and when i click "edit" it would open up a new page with a form with all the info in each text box so i can edit and then re-submit it...

Posted: Fri Oct 24, 2003 11:53 am
by volka
you need a field with an unique value (e.g. an auto-increment primary index). Ship the value of the record that is to be edited/deleted with the request and use it in the sql's WHERE-clause