<?php } } } } elseif ($confx == 1) { $nRequirements = new EBPLSTFO($dbLink, 'false'); $datetoday = date("Y-m-d H:i:s"); $nRequirements->checksearch($bbo); $nResult = $nRequirements->rcount; if ($nResult > 0) { ?> <body onload='javascript:alert ("Cannot Delete, Existing Record found in other table!!");'></body> <?php } else { $nRequirements = new EBPLSTFO($dbLink, 'false'); $nRequirements->delete($bbo); ?> <body onload='javascript:alert ("Record Successfully Deleted!!");'></body> <?php } $bbo = ""; } if ($com == "edit") { $nRequirements = new EBPLSTFO($dbLink, 'false'); $nRequirements->search($bbo, NULL); $nResult = $nRequirements->out; $iDesc = $nResult[tfodesc]; $iTFOType = $nResult[taxfeetype]; $iDefAmount = $nResult[defamt]; $iYearType = $nResult[or_print]; $iNoYear = $nResult[counter];