$bank_average = 0;
$nfs_average = 0;
$creditcard = 0;
$creditcard_t = '';
$creditcard_average = '';
$email = '';
$tutorial = '';
// if (in_array($element, $tutorial)){echo "";}
//Objects
$business = new Business();
$lender = new Lender();
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']);
    $lender->setNSF($_POST['nsf']);
    $lender->setCreditCard($_POST['creditcard']);
    $lender->setCreditCard_t($_POST['creditcard_t']);
    $lender->setCreditCardAverage($_POST['creditcard_average']);
    $lender->setEmail($_POST['email']);
    $lender->insertLender();
}
if (isset($_GET['edit'])) {