diff --git a/scripts/overview.php b/scripts/overview.php index 157b06d..977bae5 100644 --- a/scripts/overview.php +++ b/scripts/overview.php @@ -55,6 +55,14 @@ if($statement5 == False) { } $result5 = $statement5->execute(); $speciestally = $result5->fetchArray(SQLITE3_ASSOC); + +$statement6 = $db->prepare('SELECT COUNT(DISTINCT(Com_Name)) FROM detections'); +if($statement6 == False) { + echo "Database is busy"; + header("refresh: 0;"); +} +$result6 = $statement6->execute(); +$totalspeciestally = $result6->fetchArray(SQLITE3_ASSOC); ?>
@@ -85,6 +93,12 @@ $speciestally = $result5->fetchArray(SQLITE3_ASSOC);