MySQL SUM – Adding a New Value to an Existing Value

MySQLsum

I have a PHP script which processes a form with a single input.

I want the value I send through input to be added to an existing value in database (MySQL).

For example in database I have value = 10

When I type into the input 25 and submit the info. I want the value in database to be 35. I don't need any PHP code. I just want to know the correct MySQL query.

Best Answer

UPDATE value =  value + $newvalue