From cda96d31939c7ea727c114b162f43bb4d18314a2 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 8 May 2023 17:08:54 +0200 Subject: more website --- public/product.php | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) (limited to 'public/product.php') diff --git a/public/product.php b/public/product.php index 8733562..3e6a89f 100644 --- a/public/product.php +++ b/public/product.php @@ -1,17 +1,40 @@ + +prepare("select ID as id, image, price, name, description from webs.product where ID = ?"); +$statement->bind_param("i", $_GET['id']); +if (!$statement->execute()) refuse(); +$res = $statement->get_result(); +if (!mysqli_num_rows($res)) refuse(); +$product = $res->fetch_object(); +?> dit is product +
-

yeah product

- - 3,45 - courgette - Lorem ipsum dolor sit amet consectetur adipisicing elit. Nulla dignissimos laboriosam voluptatem facilis tempore quos, asperiores eos molestiae voluptates commodi animi enim quae deleniti? Ratione optio eligendi rem eveniet reiciendis. +
+
+ id."-thumb.jpg" ?>" alt=""> +
+
+

name ?>

+ price ?> + description ?> +
+ +
+
+
-- cgit v1.2.3