Answer the question
In order to leave comments, you need to log in
How to add a value to a field from the database?
How to add a value to a table field? For example, the number 50 is stored there, and when replenishing the balance, a number, for example 100, should be added. Of course, you can first take the balance value, add and update, but I would like to immediately add the desired number.
Answer the question
In order to leave comments, you need to log in
You display the current balance from the database, add to the current balance by how much you need to increase it.
The resulting number is entered into the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question