fixing small bug
This commit is contained in:
@@ -101,8 +101,9 @@ while (mysqli_stmt_fetch($stmt)) {
|
|||||||
$printer["view"]=5;
|
$printer["view"]=5;
|
||||||
//insert into db that this one is printing
|
//insert into db that this one is printing
|
||||||
$sql="UPDATE printer SET system_status=99 WHERE id = $printer_id";
|
$sql="UPDATE printer SET system_status=99 WHERE id = $printer_id";
|
||||||
$stmt = mysqli_prepare($link, $sql);
|
$stmt2 = mysqli_prepare($link, $sql);
|
||||||
mysqli_stmt_execute($stmt);
|
mysqli_stmt_execute($stmt2);
|
||||||
|
mysqli_stmt_close($stmt2);
|
||||||
}else{
|
}else{
|
||||||
$printer["print_status"]="Bereit";
|
$printer["print_status"]="Bereit";
|
||||||
$printer["view"]=3;
|
$printer["view"]=3;
|
||||||
|
|||||||
Reference in New Issue
Block a user