edit column

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
mohson
Forum Contributor
Posts: 372
Joined: Thu Dec 02, 2004 6:58 am
Location: London

edit column

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

every record would have the same field.... that's silly.

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