<input type="submit" class="btn btn-success" value="Proceed"> </div> </div> </form> <div class="col-md-6"> <table class="table table-hover"> <thead> <tr> <th>Date</th> <th>Name</th> <th>Amount</th> </tr> </thead> <tbody> <?php foreach ($ro3->personalBalancePatient_registrationNo() as $registrationNo) { ?> <tr> <td> <?php echo $ro4->formatDate($ro3->selectNow("registrationDetails", "dateUnregistered", "registrationNo", $registrationNo)); ?> </td> <td> <?php echo $ro3->selectNow("patientRecord", "lastName", "patientNo", $ro3->selectNow("registrationDetails", "patientNo", "registrationNo", $registrationNo)) . ", " . $ro3->selectNow("patientRecord", "firstName", "patientNo", $ro3->selectNow("registrationDetails", "patientNo", "registrationNo", $registrationNo)); ?> </td> <td> <?php $personalBalance += $ro3->personalBalancePatient_total($registrationNo) + $ro3->personalBalancePatient_therapy_total($registrationNo);