how to calculate running balance like entries of bank passbook using php mysql | Libero Ram
Demo - Download Inded.php <?php error_reporting(0); include('connection.php'); ?> .mytab td, th { border: 1px solid #0da3e2; padding: 5px !important; text-align: center !important; } .mytab { width: 100%; } .red{ color:red;} h2{ text-align:center; } Libero Ram $cridit =mysql_query("select sum(Credit) AS cri from test where STR_TO_DATE(TransDate,'%Y-%m-%d')while($rlt = mysql_fetch_array($sql)){ $cr = $rlt['Credit']; $dit= $rlt['Debit']; $tbal.$i = ($bal.$i+$cr -$dit…