diff --git a/scripts/overview.php b/scripts/overview.php
index a88d2f6..343c55b 100644
--- a/scripts/overview.php
+++ b/scripts/overview.php
@@ -67,6 +67,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" && isse
while($mostrecent = $result4->fetchArray(SQLITE3_ASSOC)) {
$comname = preg_replace('/ /', '_', $mostrecent['Com_Name']);
$sciname = preg_replace('/ /', '_', $mostrecent['Sci_Name']);
+ $comnamegraph = preg_replace('/\'/', '__', $comname);
$comname = preg_replace('/\'/', '', $comname);
$filename = "By_Date/".$mostrecent['Date']."/".$comname."/".$mostrecent['File_Name'];
@@ -133,7 +134,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" && isse
-
+
Confidence:
diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php
index 89caf54..6cef142 100644
--- a/scripts/todays_detections.php
+++ b/scripts/todays_detections.php
@@ -58,6 +58,7 @@ $totalspeciestally = $result6->fetchArray(SQLITE3_ASSOC);
if(isset($_GET['comname'])) {
$birdName = $_GET['comname'];
+ $birdName = str_replace("__", "'", $birdName);
$birdName = str_replace("_", " ", $birdName);
@@ -192,6 +193,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" ) {
$iterations++;
$comname = preg_replace('/ /', '_', $todaytable['Com_Name']);
+ $comnamegraph = preg_replace('/\'/', '__', $comname);
$comname = preg_replace('/\'/', '', $comname);
$filename = "/By_Date/".date('Y-m-d')."/".$comname."/".$todaytable['File_Name'];
$filename_formatted = $todaytable['Date']."/".$comname."/".$todaytable['File_Name'];
@@ -240,7 +242,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" ) {
src="images/info.png" width="20">
- 
+ 
Confidence:
@@ -264,7 +266,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" ) {
src="images/info.png" width="25">
-
+