fixing small bug

This commit is contained in:
root
2024-12-22 09:56:29 +00:00
parent f05d3cfe52
commit 107dd60cd8

View File

@@ -101,8 +101,9 @@ while (mysqli_stmt_fetch($stmt)) {
$printer["view"]=5;
//insert into db that this one is printing
$sql="UPDATE printer SET system_status=99 WHERE id = $printer_id";
$stmt = mysqli_prepare($link, $sql);
mysqli_stmt_execute($stmt);
$stmt2 = mysqli_prepare($link, $sql);
mysqli_stmt_execute($stmt2);
mysqli_stmt_close($stmt2);
}else{
$printer["print_status"]="Bereit";
$printer["view"]=3;