From d99d91293fe9e9ad683bbd079848df4031f0a77a Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 13 May 2023 14:35:04 +0200 Subject: add links to admin pages + more login --- public/cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/cart.php') 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;
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(); -- cgit v1.2.3