diff options
Diffstat (limited to 'public/product.php')
-rw-r--r-- | public/product.php | 3 |
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> |