I am wondering if this is possible:
Have a number in a mysql table, then show it on a webpage (I know this is possible). Then, when a user on the site reaches a certain page, the number in the mysql table gets 10 subtracted from it. Then, the other users on the site will now see this new number instead of the old one.
I want to make a site where everyone sees the same number until one person reaches a page, then the number gets 10 subtracted from it.
I think I know how to do this, but is there a php command to have a variable be a number, and then subtract from that number?
$number = 10;
$newnumber = 10-3;
and it shows 7?
I hope this is clear. THANK YOU IF YOU CAN HELP!