Update client_list.php

This commit is contained in:
jakani24
2024-03-09 17:00:48 +01:00
parent 3eaed5187f
commit c478e79914

View File

@@ -97,7 +97,7 @@ include "perms_functions.php";
echo('</thead>'); echo('</thead>');
echo('<tbody>'); echo('<tbody>');
while($num_of_machines!=0){ while($num_of_machines!=0){
$sql = "SELECT * FROM machines where id > $last_id"; $sql = "SELECT * FROM machines WHERE id > $last_id";
$stmt = $conn->prepare($sql); $stmt = $conn->prepare($sql);
// Execute the statement // Execute the statement
$stmt->execute(); $stmt->execute();
@@ -115,7 +115,7 @@ include "perms_functions.php";
echo('<td><a href="client_list.php?delete='.$last_id.'">delete</a></td>'); echo('<td><a href="client_list.php?delete='.$last_id.'">delete</a></td>');
echo('</tr>'); echo('</tr>');
$stmt->close(); $stmt->close();
$num_of_users--; $num_of_machines--;
} }
echo('</tbody>'); echo('</tbody>');
echo('</table>'); echo('</table>');