I have a form that users use to update items. The form contains input fields such as iten name, item price, quantity etc.
Now, the form is updating, but it is duplicating the item description in the database.
This is the item description adds ends up as:
This is the item description This is the item description.
Is there a way to only update text that has changed? The form is built in php.
Please try this once if you are using mysql
there is 2 solutions for it…
If you want to update value of field if new value changed from existing one. then run query for every field separately one by one of form
else
It will update all fields value ….