Merge branch 'Nachtzuster:main' into patch-5
This commit is contained in:
+9
-2
@@ -558,9 +558,12 @@ while ($result2->fetchArray(SQLITE3_ASSOC)) {
|
||||
$num_rows++;
|
||||
}
|
||||
$result2->reset(); // reset the pointer to the beginning of the result set
|
||||
$sciname = get_sci_name($name);
|
||||
$info_url = get_info_url($sciname);
|
||||
$url = $info_url['URL'];
|
||||
echo "<table>
|
||||
<tr>
|
||||
<th>$name</th>
|
||||
<th><a href=\"$url\" target=\"top\">$name</a></th>
|
||||
</tr>";
|
||||
$iter=0;
|
||||
while($results=$result2->fetchArray(SQLITE3_ASSOC))
|
||||
@@ -641,9 +644,13 @@ echo "<table>
|
||||
$statement2 = $db->prepare("SELECT * FROM detections where File_name == \"$name\" ORDER BY Date DESC, Time DESC");
|
||||
ensure_db_ok($statement2);
|
||||
$result2 = $statement2->execute();
|
||||
$comname = str_replace("_", " ", strtok($name, '-'));
|
||||
$sciname = get_sci_name($comname);
|
||||
$info_url = get_info_url($sciname);
|
||||
$url = $info_url['URL'];
|
||||
echo "<table>
|
||||
<tr>
|
||||
<th>$name</th>
|
||||
<th><a href=\"$url\" target=\"top\">$name</a></th>
|
||||
</tr>";
|
||||
while($results=$result2->fetchArray(SQLITE3_ASSOC))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user