Example #1
0
        } else {
            header("Location: ../../controller/login.php");
            exit;
        }
    } else {
        header("Location: ../../controller/login.php");
        exit;
    }
} else {
    header("Location: ../../controller/login.php");
    exit;
}
$usuario = $_SESSION['usuario'];
$idE = base64_decode($_GET['id']);
try {
    $cuadro = $cuadroC->seleccionar_parentesco1($idE);
} catch (Exception $e) {
    echo "Ha ocurrido un error";
}
if ($cuadro != null) {
    foreach ($cuadro as $key => $bl) {
        $nomPar = $bl['nomPar'];
        $idPar = $bl['idPar'];
    }
} else {
    echo "No hay datos";
}
?>

<!DOCTYPE html>
<html>