<h1 class="balanceBox"><?=$money?></h1>
mysqli_query($link, "UPDATE `users` SET `money` = '$money' - '10' WHERE `id` = '$id'");
$obj = array("money"=>"123");
echo json_encode($obj);
obj = $.parseJSON(response);
var money = obj.money;
$(".balanceBox").text(money);