using this query i can easily deduct the payment to the remaining balance
let say that my rem_balance is 3000 and my payment is 5000 so basically the change would be 2000.
UPDATE tbl_users SET rem_balance = (rem_balance - '5000') WHERE user_id = '2017001002'
but since i use this query what happen is the rem_balance updates to -2000 what i wanted to achieve is that if payment is >
rem_balance, rem_balance becomes 0 and it will separate the change.