aboutsummaryrefslogtreecommitdiff
path: root/public/product.php
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-05-09 14:50:10 +0200
committerlonkaars <loek@pipeframe.xyz>2023-05-09 14:50:10 +0200
commit07d9bcf6b55a7aa866397def09c300347d9c88ea (patch)
treeb7734f271aba677228300eebd732e41302692c84 /public/product.php
parent6d5c72f908e8f7c1c2b0defa696aad43c55fc1ba (diff)
WIP show cart count
Diffstat (limited to 'public/product.php')
-rw-r--r--public/product.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/product.php b/public/product.php
index 51ce3db..172a30c 100644
--- a/public/product.php
+++ b/public/product.php
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<?php require "db.php"; ?>
+<?php require "../lib/db.php"; ?>
<?php
function refuse() {
http_response_code(404);
@@ -34,6 +34,7 @@ $product = $res->fetch_object();
<span class="price"><?php echo $product->price ?></span>
<span class="info"><?php echo $product->description ?></span>
<form action="/cart.php" method="post">
+ <input type="number" value="<?php echo $product->id ?>" hidden name="product_id">
<input type="submit" value="Toevoegen aan winkelwagen" class="button filled">
</form>
</div>