phppup Posted April 25, 2018 Share Posted April 25, 2018 How can I calculate a running balance using PHP? I have a table that will record both sales and credits and would like to display a cumulative balance. It seems redundant to have to revisit every individual transaction and recalculate the current balance each time it is required. How can I set up an additional column named "balance" and use it as a reference point against the newest entry for the specific customer? What is the best method of achieving a checkbook-style method? Link to comment Share on other sites More sharing options...
cyberRobot Posted April 25, 2018 Share Posted April 25, 2018 Topic locked. Please do not cross post. https://forums.phpfreaks.com/topic/307207-running-balance-checkbook/ Link to comment Share on other sites More sharing options...
Recommended Posts