diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-05-08 17:14:06 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-05-08 17:14:06 +0200 |
commit | f3b582307cc3caf5ee0c7514d461e47fb5893bc7 (patch) | |
tree | 8865da67af7ae04d870481af155781c9a82ff0a7 /public/product.php | |
parent | cda96d31939c7ea727c114b162f43bb4d18314a2 (diff) |
uppercase is dumb
Diffstat (limited to 'public/product.php')
-rw-r--r-- | public/product.php | 2 |
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(); |