I asked this question yesterday, I got the answer I wanted, I'll be direct and challenge:
I have the query:
UPDATE users SET time = time - 1
time
is of type int
and receives as default value 0
, in my PHP code I made a schema where the user clicks the button adds 1800
to the value of time
and the query event It starts at the beginning of the action, it happens that when it arrives at 0 it starts counting -1, -2, -3 ... 1800, etc.,
How can I do this?