connect_error) { quit(); } echo '
'; $stmt = $con->prepare("SELECT status.name AS status FROM secondLevel JOIN status ON secondLevel.status_id = status.id WHERE secondLevel.name = ?"); $stmt->bind_param("s", $tile); $stmt->execute(); $result = $stmt->get_result(); $ret = $result->fetch_all(MYSQLI_ASSOC); $curStatus = Null; foreach ($ret as $row) { $curStatus = $row["status"]; } echo '
' . $_GET['minor'] . '
'; if(!isset($_SESSION["token"])) { echo '
'; } echo '
'; echo '
'; } ?>