aboutsummaryrefslogtreecommitdiff
path: root/public/product.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/product.php')
-rw-r--r--public/product.php2
1 files changed, 1 insertions, 1 deletions
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();