diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-05-13 14:35:04 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-05-13 14:35:04 +0200 |
commit | d99d91293fe9e9ad683bbd079848df4031f0a77a (patch) | |
tree | 26b234f733248a3f22503f1fef7644c3bc739f0c /public/cart.php | |
parent | b8e90ea5ea7c41444d7fbce6848e4c3cf37c87e5 (diff) |
add links to admin pages + more login
Diffstat (limited to 'public/cart.php')
-rw-r--r-- | public/cart.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/cart.php b/public/cart.php index f953880..34cccbb 100644 --- a/public/cart.php +++ b/public/cart.php @@ -48,7 +48,7 @@ EOF; <div class="products"> <?php do { global $username; - $statement = $cursor->prepare("select product.id, product.name, product.price, product.image, cart.count from cart join customer on customer.id = cart.customer join product on product.id = cart.product where customer.name = ?"); + $statement = $cursor->prepare("select product.id, product.name, product.price, product.image, cart.count from cart join user on user.id = cart.user join product on product.id = cart.product where user.name = ?"); $statement->bind_param("s", $username); if (!$statement->execute()) break; $res = $statement->get_result(); |