From 9774215e7ce98a9db6d926421aba154ba902a3ca Mon Sep 17 00:00:00 2001 From: PaulVua Date: Tue, 11 Feb 2025 14:55:10 +0100 Subject: [PATCH] update --- html/launcher.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/html/launcher.php b/html/launcher.php index 4dbb49a..4d9cceb 100755 --- a/html/launcher.php +++ b/html/launcher.php @@ -118,10 +118,6 @@ if ($type == "database_size") { $fileSizeKilobytes = $fileSizeBytes / 1024; // KB $fileSizeMegabytes = $fileSizeKilobytes / 1024; // MB - // Query the number of records in the `data` table - $query = "SELECT COUNT(*) AS total_records FROM data"; - $result = $db->query($query); - $recordCount = $result ? $result->fetch(PDO::FETCH_ASSOC)['total_records'] : 0; // Prepare the JSON response $data = [ @@ -129,7 +125,6 @@ if ($type == "database_size") { 'size_bytes' => $fileSizeBytes, 'size_kilobytes' => round($fileSizeKilobytes, 2), 'size_megabytes' => round($fileSizeMegabytes, 2), - 'data_table_records' => $recordCount ]; // Output the JSON response