$nRequirements->setData(COUNTER, $iNoYear); $nRequirements->add(); $iDesc = ""; $itfoindicator = ""; $iTFOType = ""; $iDefAmount = ""; $iYearType = ""; $iNoYear = ""; ?> <body onload='javascript:alert ("Data is successfully added to the database!!");'></body> <?php } } } else { $nRequirements = new EBPLSTFO($dbLink, 'false'); $nRequirements->searchcomp($bbo, $iDesc, $iPermitType); $rResult = $nRequirements->rcount; if ($rResult[0] > 0) { ?> <body onload='javascript:alert ("Existing Tax, Fee and Other Charges Found!!");'></body> <?php } else { if ($itfoindicator == 1 and $iDefAmount < 1) { ?> <body onload='javascript:alert ("Enter Valid Default Amount!!");'></body> <?php } else { $datetoday = date("Y-m-d H:i:s"); $nRequirements = new EBPLSTFO($dbLink, 'false'); $nRequirements->setData(TFODESC, $iDesc); $nRequirements->setData(TFOSTATUS, "A");