diff --git a/scripts/stats.php b/scripts/stats.php index d055636..4f5dfa9 100644 --- a/scripts/stats.php +++ b/scripts/stats.php @@ -43,6 +43,7 @@ if(isset($_GET['sort']) && $_GET['sort'] == "occurrences") { $result2 = $statement2->execute(); } + if(isset($_GET['species'])){ $selection = htmlspecialchars_decode($_GET['species'], ENT_QUOTES); $statement3 = $db->prepare("SELECT Com_Name, Sci_Name, COUNT(*), MAX(Confidence), File_Name, Date, Time from detections WHERE Com_Name = \"$selection\""); @@ -109,7 +110,6 @@ if (get_included_files()[0] === __FILE__) { } else { $num_cols = 1; } - $num_rows = ceil(count($birds) / $num_cols); for ($row = 0; $row < $num_rows; $row++) { @@ -135,14 +135,12 @@ if (get_included_files()[0] === __FILE__) { - - -
Choose a species to load images from Flickr.