aboutsummaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-05-08 17:14:06 +0200
committerlonkaars <loek@pipeframe.xyz>2023-05-08 17:14:06 +0200
commitf3b582307cc3caf5ee0c7514d461e47fb5893bc7 (patch)
tree8865da67af7ae04d870481af155781c9a82ff0a7 /public/index.php
parentcda96d31939c7ea727c114b162f43bb4d18314a2 (diff)
uppercase is dumb
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php
index 653962c..84dc753 100644
--- a/public/index.php
+++ b/public/index.php
@@ -13,7 +13,7 @@
<h1>hier zijn de aanbiedingen</h1>
<ul>
<?php
- $res = $cursor->query("select product.ID as id, product.name as name from promotion join product on product.ID = promotion.product");
+ $res = $cursor->query("select product.id, product.name as name from promotion join product on product.id = promotion.product");
while ($product = $res->fetch_object()) {
echo "<li><a href=\"/product.php?id=$product->id\">$product->name</a></li>";
}