exit; } if (isset($_GET["logout"])) { session_destroy(); header("Location: login.php"); exit; } ##HALDUS## $InterestManager = new InterestManager($mysqli, $_SESSION['user_id']); if (isset($_GET["insert"])) { $int_name = $_GET["insert"]; $InterestManager->addInterest($int_name); $interest_response = $InterestManager->addInterest($int_name); } if (isset($_GET["dropdown_interest"])) { $InterestManager->addUserInterests($_SESSION['user_id'], $_GET["dropdown_interest"]); $user_int_response = $InterestManager->addUserInterests($_SESSION['user_id'], $_GET["dropdown_interest"]); var_dump($user_int_response); } ?> Tere, <?php echo $_SESSION['user_email']; ?> <a href="?logout=1">Logi välja</a> <br> <?php if (isset($_SESSION["login_message"])) { ?>