From 64c8fad37d33769801693f7268bb94835e0d10c2 Mon Sep 17 00:00:00 2001 From: Janis Steiner Date: Fri, 20 Sep 2024 18:02:20 +0100 Subject: [PATCH] adding status damaged --- sys0-code/app/print.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys0-code/app/print.php b/sys0-code/app/print.php index c89fcef..5faea48 100644 --- a/sys0-code/app/print.php +++ b/sys0-code/app/print.php @@ -379,7 +379,6 @@ function is_time_between($startTime, $endTime, $checkTime) { mysqli_stmt_store_result($stmt); mysqli_stmt_bind_result($stmt, $num_of_printers); mysqli_stmt_fetch($stmt); - //echo("test1:".$num_of_printers); $last_id=0; $printers_av=0; if(isset($_GET["preselect"])){ @@ -391,7 +390,7 @@ function is_time_between($startTime, $endTime, $checkTime) { while($num_of_printers!=0) { $id=0; - $sql="Select id,color from printer where id>$last_id and free=1 order by id"; + $sql="Select id,color from printer where id>$last_id and free=1 and system_status=0 order by id"; //echo $sql; $color=""; $stmt = mysqli_prepare($link, $sql);