maintain update log question.

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
ijlal2
Forum Newbie
Posts: 6
Joined: Sun Jul 06, 2008 2:06 pm

maintain update log question.

Post by ijlal2 »

hi

i have a update form for my users where they can update their personal information. i want to keep a record of which fields the user has updated. Currently i am using hidden input fileds to store the previous values before submitting form and then matching it with the new/updated value of that field(s). but the length of code is increasing as new fields are added to db.

is there any other better method.

Thanks
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Re: maintain update log question.

Post by pcoder »

It would be better to control it from the backend.
Write database trigger and keep the updated record as your requirement.
:)
Post Reply