prepare('SELECT Date, Time, File_Name, Com_Name, COUNT(*), MAX(Confidence) FROM detections GROUP BY Com_Name ORDER BY COUNT(*) DESC'); if($statement == False) { echo "Database busy"; header("refresh: 0;"); } $result = $statement->execute(); if(isset($_POST['species'])){ $selection = $_POST['species']; $statement3 = $db->prepare("SELECT Com_Name, Sci_Name, COUNT(*), MAX(Confidence), File_Name, Date, Time from detections WHERE Com_Name = \"$selection\""); if($statement3 == False) { echo "Database busy"; header("refresh: 0;"); } $result3 = $statement3->execute(); } ?>
| Common Name | Occurrences | Max Confidence Score | Best Recording |
|---|---|---|---|
| Scientific Name | Occurrences | Highest Confidence Score | Best Recording | Links |
|---|---|---|---|---|
| $sciname | $count | $maxconf | $date $time |
All About Birds |
Loading Images from https://commons.wikimedia.org/w/index.php?search=$linkname&title=Special:MediaSearch&go=Go&type=image
", '6096'); ob_flush(); flush(); $imagelink = "https://commons.wikimedia.org/w/index.php?search=$linkname&title=Special:MediaSearch&go=Go&type=image"; $homepage = file_get_contents($imagelink); preg_match_all("{