From cda96d31939c7ea727c114b162f43bb4d18314a2 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 8 May 2023 17:08:54 +0200 Subject: more website --- public/products.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'public/products.php') diff --git a/public/products.php b/public/products.php index e9c7cdf..bffaeb0 100644 --- a/public/products.php +++ b/public/products.php @@ -2,9 +2,10 @@ img ? "/img/product/$product->id-thumb.jpg" : "/img/placeholder.png"; echo <<<"EOF" - + $product->price $product->name @@ -23,7 +24,7 @@ EOF;

lijst met producten:

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