Answer the question
In order to leave comments, you need to log in
How to subtract a number from a value in a MYSQL table?
How to subtract from the value of amount (in the table) the number $sum?
I tried that - didn't work
$sum = 1;
$mysqli->query("UPDATE orders SET redeemed = '$change', amount -= '$sum' WHERE id = '$id'");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question