diff --git a/offerAdder.php b/offerAdder.php index d5be3a1..805e9e1 100644 --- a/offerAdder.php +++ b/offerAdder.php @@ -32,7 +32,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['action']) && $_POST[' if ($productID > 0 && $shopID > 0 && $price >= 0) { $stmt = $conn->prepare("INSERT INTO offers (productID, shopID, price, shippingCost, inStock, offerURL) VALUES (?, ?, ?, ?, ?, ?)"); - $stmt->bind_param("iiddiss", $productID, $shopID, $price, $shippingCost, $inStock, $offerURL); + $stmt->bind_param("iiddis", $productID, $shopID, $price, $shippingCost, $inStock, $offerURL); if ($stmt->execute()) { $message = 'Angebot erfolgreich hinzugefügt!'; $messageType = 'success';