The php video web script that I’m trying to modify has a process where Users generate credit units from viewed videos.
The total ‘balance’ of credits is stored in mysql db table named ‘User’, in a column titled “balance”, with each total reflected in a users’ row, and the ‘balance’ total gets updated (goes up or down), depending on the activity of the credits.
However, if 2 credits get added to the balance, for example, there is no tracking of what type of activity caused the balance total change.
I believe a separate table that gets a new row inserted for each transaction, that affects the amount, should be created? but I don’t know how to go about doing that. Any guidance you’d like to share is appreciated.
What else might this need? Or do you have a better/another idea?
I look forward to all comments/suggestions.