Vp3Vy1n"; $database = "u318048680_WEBBASED1"; // Create connection Procedure $conn = mysqli_connect($servername, $usernamev, $password, $database); $query = "SELECT * FROM `users` WHERE username='${_SESSION["username"]}'"; $query2 = "SELECT * FROM `info` WHERE username='${_SESSION["username"]}'"; $decode = $conn->query($query)->fetch_assoc()["Membership"]; if($decode == 3 ){ header('Location: blacklist.php'); } } ?>