How to update table field in SQL by adding to it number received from the HTML form?
Let’s say I have a form:
<form action="">
<input type="text" name="number" value="1">
<input type="submit" value="Submit">
</form>
I have a table in MySQL: TABLE: “test” (ID:1 | Number: 12)
Is it possible to compose sql query which lets me to add number "1" from HTML form to number 12 (ID:1) in my table?
The one way how I understand is possible to do that is to select first number from table “test” and add to it 1, then update the table with the sum what I get. But is it possible to sum 1 and 12 in more easy way?
</div>