diff --git a/index.php b/index.php index 3a74650..11ec27e 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,6 @@ error_reporting(E_ALL); ?> - diff --git a/productpage.php b/productpage.php index b3d9bbc..0b469c7 100644 --- a/productpage.php +++ b/productpage.php @@ -1 +1,86 @@ + + + + + + +
+

Produkt nicht gefunden

+

Bitte eine gueltige Produkt-ID mitgeben.

+
+ + prepare(" + SELECT productID, model, description, imagePath + FROM products + WHERE productID = ? + LIMIT 1 + "); + + $stmt->bind_param("i", $productId); + $stmt->execute(); + + $result = $stmt->get_result(); + $product = $result->fetch_assoc(); + ?> + + +
+
+
+ <?= htmlspecialchars($product['model']) ?> + +
+

+

+
+
+
+
+ +
+

Produkt nicht gefunden

+

Zu dieser ID gibt es kein Produkt.

+
+ + + close(); ?> + + + + + + + + + + + + \ No newline at end of file