From 847347fb5511f6c526e41e0e5963e6d4f3882e58 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 8 May 2023 13:20:14 +0200 Subject: WIP show products in database --- public/products.php | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) (limited to 'public/products.php') diff --git a/public/products.php b/public/products.php index 077702a..e9c7cdf 100644 --- a/public/products.php +++ b/public/products.php @@ -1,4 +1,16 @@ + +id" class="product nolinkstyle"> + + $product->price + $product->name + +EOF; +} +?> @@ -10,26 +22,10 @@

lijst met producten:

- - - 3,45 - courgette - - - - 3,45 - courgette - - - - 3,45 - courgette - - - - 3,45 - courgette - + query("select ID as id, image_path as img, price, name from webs.product"); + while ($product = $res->fetch_object()) product_template($product); + ?>
-- cgit v1.2.3