How to get php to add/subtract a number (in the php code not an input) from a mySQL table by the press of a button?

e.g.

Clicking a button (Sell) and it adds 50 to 9999.
Clicking a button (Buy) and it subtracts 50 from 10049.

That would be very useful in what I am building

Thanks in advance.