From f3b582307cc3caf5ee0c7514d461e47fb5893bc7 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 8 May 2023 17:14:06 +0200 Subject: uppercase is dumb --- public/products.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/products.php') diff --git a/public/products.php b/public/products.php index bffaeb0..fd3e2a1 100644 --- a/public/products.php +++ b/public/products.php @@ -2,7 +2,7 @@ img ? "/img/product/$product->id-thumb.jpg" : "/img/placeholder.png"; + $image_path = $product->image ? "/img/product/$product->id-thumb.jpg" : "/img/placeholder.png"; echo <<<"EOF" @@ -24,7 +24,7 @@ EOF;

lijst met producten:

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