adding status damaged

This commit is contained in:
Janis Steiner
2024-09-20 18:02:20 +01:00
parent 677211c95e
commit 64c8fad37d

View File

@@ -379,7 +379,6 @@ function is_time_between($startTime, $endTime, $checkTime) {
mysqli_stmt_store_result($stmt); mysqli_stmt_store_result($stmt);
mysqli_stmt_bind_result($stmt, $num_of_printers); mysqli_stmt_bind_result($stmt, $num_of_printers);
mysqli_stmt_fetch($stmt); mysqli_stmt_fetch($stmt);
//echo("test1:".$num_of_printers);
$last_id=0; $last_id=0;
$printers_av=0; $printers_av=0;
if(isset($_GET["preselect"])){ if(isset($_GET["preselect"])){
@@ -391,7 +390,7 @@ function is_time_between($startTime, $endTime, $checkTime) {
while($num_of_printers!=0) while($num_of_printers!=0)
{ {
$id=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; //echo $sql;
$color=""; $color="";
$stmt = mysqli_prepare($link, $sql); $stmt = mysqli_prepare($link, $sql);