if (isset($_GET['edit'])) {
    $lender->Lender($_GET['edit']);
    $id_lender = $lender->getIDLender();
    $name = $lender->getName();
    $no_business = $lender->getBusiness();
    $no_business_array = explode(",", $no_business);
    $foreclosure = $lender->getForeclosure();
    $landlord = $lender->getLandlord();
    $years = $lender->getYears();
    $months = $lender->getMonths();
    $bankstatements = $lender->getBankStatements();
    $bank_average = $lender->getBankAverage();
    $nfs_average = $lender->getNSF();
    $creditcard = $lender->getCreditCard();
    $creditcard_t = $lender->getCreditCard_T();
    $creditcard_average = $lender->getCreditCardAverage();
    $email = $lender->getEmail();
    // print_r($no_business_array);
}
if (isset($_POST['id_lender']) && is_numeric($_POST['id_lender'])) {
    foreach ($_POST['business'] as $names) {
        $string_business = $string_business . ', ' . $names;
    }
    $lender->setName($_POST['name']);
    $lender->setBusiness($string_business);
    $lender->setForeclosure($_POST['foreclosure']);
    $lender->setLandlord($_POST['landlord']);
    $lender->setYears($_POST['years']);
    $lender->setMonths($_POST['months']);
    $lender->setBankStatements($_POST['bankstatements']);
    $lender->setBankAverage($_POST['bank_average']);