You have a syntactic problem in your sql:
$sql = "UPDATE inventory set image='$image', product='$product', category='$category', seller='$seller' WHERE id = $id";
In addition you need to verify if $id has the correct value. Because if it's empty or null your query will fail.
If you want to insert data you can use a query like this:
$sql = "INSERT INTO inventory (image, product, category, seller) VALUES ('$image', '$product', '$category', '$seller')";
Try this in your edit.php view:
<?php
$sql = "SELECT * FROM inventory WHERE id=".$_REQUEST['id];
$result = $connection->query($sql);
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
} else {
echo "No Results";
}
$connection->close();
?>
<div class="row" id="mainSection">
<form action="update.php" method="post">
<input type="hidden" name="id" value="value="<?php echo $row['id']?>"">
<h3>Image:</h3>
<input type="text" name="image" value="<?php echo $row['image']?>">
<h3>Product:</h3>
<input type="text" name="product" value="<?php echo $row['product']?>">
<h3>Category:</h3>
<input type="text" name="category" value="<?php echo $row['category']?>">
<h3>Seller:</h3>
<input type="text" name="seller" value="<?php echo $row['seller']?>">
<br><br>
<input type="submit" value="Update My Record">
</form>
<br>
<a href="admin.php" id="backButton">Back</a>
</div>