$species
| Common Name |
Scientific Name |
Occurrences |
Highest Confidence Score |
Links |
";
echo str_pad($str, 4096);
ob_flush();
flush();
while($rows = $specificstats->fetch_assoc()) {
$count = $rows['COUNT(*)'];
$maxconf = $rows['MAX(Confidence)'];
$name = $rows['Com_Name'];
$sciname = $rows['Sci_Name'];
$dbname = preg_replace('/ /', '_', $rows['Com_Name']);
$dbname = preg_replace('/\'/', '', $dbname);
$dbsciname = preg_replace('/ /', '_', $rows['Sci_Name']);
$imagelink = shell_exec("/home/pi/BirdNET-Pi/scripts/get_image.sh $dbsciname");
$imagecitation = shell_exec("/home/pi/BirdNET-Pi/scripts/get_citation.sh $dbsciname");
$str= "
| $name |
$sciname |
$count |
$maxconf |
Wikipedia, All About Birds
|
";
echo str_pad($str, 4096);
ob_flush();
flush();
echo "
$imagecitation