| ".$tt." |
".$row["AA_ACTYPE"].",".$row["AA_TYPE"]." |
".$row["AA_ACNO"]." Transact |
".$row["AA_NAME"]." |
".$row["AA_DATE"]." |
".$row["AA_MATURE_VALUE"]." |
".$row["AA_PHONE"]." |
".$row["AA_BAL"]. " |
".$row["AA_NO_OF_PAYMENT"]." |
".$totalNoOfPaidInstallment." |
".$diff." |
".$row["AA_INSTALLMENT"]." |
".round($due_i,2)." | ";
if ($due_i > 0) {
$due_amount = $due_i * $row["AA_INSTALLMENT"];
echo "".$due_amount." | ";
}
else {
$due_amount = 'All Clear';
echo "".$due_amount." | ";
}
if ($due_i > 0 && $type == "Recurring") {
$due_amount = $due_i * $row["AA_INSTALLMENT"];
$due_amount = (($due_amount) * 20)/100;
echo "".$due_amount." | ";
}
elseif ($due_i > 0 && $type == "Loan") {
$due_amount = $due_i * $row["AA_INSTALLMENT"];
$due_amount = (($due_amount) * 40)/100;
echo "".$due_amount." | ";
}
else {
$due_amount = 'Up to Date!!';
echo "".$due_amount." | ";
}
echo "
";
}
} else {
echo "0 results";
};
$conn->close();
echo '