hey spanky the php is actually sql and we can't tell you the sql if you don't tell us the layout of the db.
Here is the best I can do with no info about your db:
$sql = "UPDATE <table> SET Field = (Field - x) WHERE Field2 = $var"
mysql_query($sql) or die("The query didn't work, probably because you didn't modify it the same as you didn't post your structure.");