This commit is contained in:
jakani24
2024-04-27 13:55:14 +02:00
parent f28c4c199b
commit 3d5f3d569d
149 changed files with 60 additions and 39776 deletions

View File

@@ -196,7 +196,7 @@ $conn->close();
$total_entries = $row["log_count"];
// Calculate total pages
$total_pages = ceil($total_entries / $page_size);
$total_pages = ceil($total_entries / $page_size*2);
// Query log entries for the current page with filters
$sql = "SELECT * FROM machines,log WHERE machine_location LIKE ? AND loglevel LIKE ? AND logtext LIKE ? AND machine_id LIKE ? AND time LIKE ? AND machine_name=machine_id ORDER BY log.id DESC LIMIT ?, ?";