From d4c58547d08a1ee026b0fa0977c404a7617ce3b2 Mon Sep 17 00:00:00 2001 From: Fabian Schieder Date: Mon, 6 Apr 2026 21:06:10 +0200 Subject: [PATCH] Fix parameter binding in offerAdder for database insertion --- offerAdder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';