diff --git a/sys0-code/test/overview.php b/sys0-code/test/overview.php index 89950b2..88fa8c4 100644 --- a/sys0-code/test/overview.php +++ b/sys0-code/test/overview.php @@ -23,10 +23,10 @@ if(isset($_GET['free'])&&$_GET["rid"]==($_SESSION["rid"]-1)) { $cnt=""; - $printer_id=htmlspecialchars($_GET['free']); - $sql="select used_by_userid from printer where id=$printer_id"; - $stmt = mysqli_prepare($link, $sql); - mysqli_stmt_execute($stmt); + $printer_id=htmlspecialchars($_GET['free']); + $sql="select used_by_userid from printer where id=$printer_id"; + $stmt = mysqli_prepare($link, $sql); + mysqli_stmt_execute($stmt); mysqli_stmt_store_result($stmt); mysqli_stmt_bind_result($stmt, $cnt); mysqli_stmt_fetch($stmt); @@ -87,7 +87,6 @@ } else { - //echo("cancelling1"); $sql="update printer set cancel=1 where id=$printer_id"; $stmt = mysqli_prepare($link, $sql); mysqli_stmt_execute($stmt); @@ -108,8 +107,7 @@ load_user();