20.05.2011, 15:20
Hello all, so I have a question about mysql..
I want to update a field like in variables:
something += 5;
because if the field value set to 7, and I want to update +5(7+5=12) and do:
format(something, value, "UPDATE `table` SET `field` = '5' WHERE `something` = '%s'", something); it will set value to 5.. :/
I want to update a field like in variables:
something += 5;
because if the field value set to 7, and I want to update +5(7+5=12) and do:
format(something, value, "UPDATE `table` SET `field` = '5' WHERE `something` = '%s'", something); it will set value to 5.. :/