From 99f1f8d953307286fc79c5bfa6453d3b5076231c Mon Sep 17 00:00:00 2001 From: MatMasIt Date: Tue, 9 Nov 2021 22:21:12 +0100 Subject: [PATCH] Fixed repo url, removed commented legacy code --- server/bookDetail.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/server/bookDetail.php b/server/bookDetail.php index cdac97f..64e083f 100644 --- a/server/bookDetail.php +++ b/server/bookDetail.php @@ -4,16 +4,10 @@ require("isbnImage.php"); function bookDisplay($pdo, $id) { -/* if(isset($_GET["duid"])){ - $ex=base64url_decode($_GET["duid"]); - $stmt = $pdo->prepare("SELECT * FROM Libri WHERE Titolo=:titolo AND ISBN=:isbn"); - - $stmt->execute([":isbn"=>$ex]);//TODO - } - else{*/ + $stmt = $pdo->prepare("SELECT * FROM Libri WHERE id=:id"); $stmt->execute([':id' => $id]); - // } + $data = $stmt->fetch(); $ak=array_keys($data); for($i=0;$i