query($sql))
{
$_SESSION['bookId'] = $bookId;
header('Location: updateBookResult.php');
}
else
{
echo "Error: ". $sql ."
". $conn->error;
}
$conn->close();
}
}
else{
echo "Enter bookId";
}
}
}
else{
session_destroy();
$_SESSION = array();
header("location: main.php");
}
?>