From f3b582307cc3caf5ee0c7514d461e47fb5893bc7 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 8 May 2023 17:14:06 +0200 Subject: uppercase is dumb --- public/product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/product.php') diff --git a/public/product.php b/public/product.php index 3e6a89f..7db5b5e 100644 --- a/public/product.php +++ b/public/product.php @@ -6,7 +6,7 @@ function refuse() { die(); } -$statement = $cursor->prepare("select ID as id, image, price, name, description from webs.product where ID = ?"); +$statement = $cursor->prepare("select id, image, price, name, description from webs.product where id = ?"); $statement->bind_param("i", $_GET['id']); if (!$statement->execute()) refuse(); $res = $statement->get_result(); -- cgit v1.2.3