I have a form where user can change his personal information that is already in database.
What is the best solution to update only the database fields which are changed and not all avaliable form options.
If you have any better suggestion than putting everyting in one form, please tell.
Update the whole user record, not taking care of which fields have changed and which ones have not.
Updating all fields at once is roughly as time- and memory- efficient as querying to check which fields have changed. Actually, you just waste your time checking the fields one by one to see which ones updated. So there is no point in such checks before updating.