Page 1 of 1

edit column

Posted: Wed Apr 06, 2005 10:05 am
by mohson
what would be the best way to add an edit column to your table so that when you table is echoed it also echoes' a edit column.

I was thinking you could create a extra column in your mysql table and make the default value 'edit' (if this is possible)and auto increment it so that whenever you have a record it will have its own edit field (whihc you could then link to your edit page).

is this the best way to do this or are there other better ways?

Posted: Wed Apr 06, 2005 10:10 am
by feyd
every record would have the same field.... that's silly.

Just output an edit button/link/whatever when displaying the select results. :?