I just wanted to ask if there was a secure way to store the credit of a client in Mysql.
Lets say he pays $100 and we credit him 100 points in the database. Each point worth a dollar. Once he is using the system - we subtract a calculated amount from his account and update it in his dashboard - this happens a lot of times daily.
I just wanted to check with you folks here is this was the correct way here to do this? Because someone might hack the system and update his amount to 100,000 and use the system endlessly... It's like a prepaid system where one gets billed for what resources he uses etc...
I wanted to secure it somehow and in a manner that we could do calculations with that amount in PHP and update it back multiple times in a day to many users...
Any suggestions?