db view now link to wikipedia also

This commit is contained in:
mcguirepr89
2022-02-13 12:29:43 -05:00
parent 767c39b496
commit b306d73bdd
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -221,6 +221,7 @@ while($rows=$stats ->fetch_assoc())
<th>Scientific Name</th>
<th>Occurrences</th>
<th>Highest Confidence Score</th>
<th>Wikipedia Link</th>
</tr>";
while($rows = $specificstats->fetch_assoc()) {
$dbname = preg_replace('/ /', '_', $rows['Com_Name']);
@@ -230,6 +231,7 @@ while($rows = $specificstats->fetch_assoc()) {
<td>";echo "<a href=\"../By_Scientific_Name/$dbsciname\"/>";echo $rows['Sci_Name']; echo "</a></td>
<td>";echo $rows['COUNT(*)'];echo "</td>
<td>";echo $rows['MAX(Confidence)'];echo "</td>
<td><a href=\"https://wikipedia.org/wiki/$dbname\" target=\"top\"/>link</a></td>
</tr>";
}}
?>
+2
View File
@@ -96,6 +96,7 @@ a {
<th>Scientific Name</th>
<th>Common Name</th>
<th>Confidence</th>
<th>Wikipedia</th>
</tr>
<!-- PHP CODE TO FETCH DATA FROM ROWS-->
<?php // LOOP TILL END OF DATA
@@ -112,6 +113,7 @@ while($rows=$mosttable ->fetch_assoc())
<td><a href="/By_Scientific_Name/<?php echo $dbsciname;?>"/><?php echo $rows['Sci_Name'];?></a></td>
<td><a href="/By_Common_Name/<?php echo $dbname;?>"/><?php echo $rows['Com_Name'];?></a></td>
<td><?php echo $Confidence;?></td>
<td><a href="https://wikipedia.org/wiki/<?php echo $dbname;?>" target="top"><?php echo $rows['Com_Name'];?></td>
</tr>
<?php
}