diff --git a/productpage.php b/productpage.php
index 75e59af..ff7f009 100644
--- a/productpage.php
+++ b/productpage.php
@@ -221,8 +221,6 @@ $productId = isset($_GET['id']) ? (int)$_GET['id'] : 0;
$shopInfo[] = $row;
}
-
-
?>
@@ -271,9 +269,48 @@ $productId = isset($_GET['id']) ? (int)$_GET['id'] : 0;
close(); ?>
+
+ bind_param("i", $productId);
+ $stmt->execute();
+ $result = $stmt->get_result();
+
+ $reviews = [];
+
+ while ($row = $result->fetch_assoc()) {
+ $reviews[] = $row;
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+ = htmlspecialchars($review['rating']) ?>
+ = htmlspecialchars($review['comment']) ?>
+
+
+
+
+
+
+
+
Es gibt noch keine Bewertungen.
+
+
+
+
+
+
+
-
-
-
-
\ No newline at end of file