better links

This commit is contained in:
mcguirepr89
2022-02-13 12:48:31 -05:00
parent f3c8334ac8
commit 8723482438
3 changed files with 6 additions and 4 deletions
+1
View File
@@ -88,6 +88,7 @@ while($rows=$mostrecent ->fetch_assoc())
<td><a href="/By_Common_Name/<?php echo $dbname;?>"><?php echo $rows['Com_Name'];?></a></td>
<td><a href="/By_Date/<?php echo $rows['Date'];?>"/><?php echo $rows['Date'];?></a></td>
<td><?php echo $rows['Time'];?></td>
<td><a href="https://allaboutbirds.org/guide/<?php echo $dbname;?>" target="top"/>More Info</a></td>
</tr>
</table>
</div>
+2 -2
View File
@@ -221,7 +221,7 @@ while($rows=$stats ->fetch_assoc())
<th>Scientific Name</th>
<th>Occurrences</th>
<th>Highest Confidence Score</th>
<th>Wikipedia Link</th>
<th>Links</th>
</tr>";
while($rows = $specificstats->fetch_assoc()) {
$dbname = preg_replace('/ /', '_', $rows['Com_Name']);
@@ -231,7 +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>
<td><a href=\"https://wikipedia.org/wiki/$dbname\" target=\"top\"/>Wikipedia</a>, <a href=\"https://wikipedia.org/wiki/$dbname\" target=\"top\"/>link</a></td>
</tr>";
}}
?>
+3 -2
View File
@@ -64,6 +64,7 @@ a {
text-decoration:none;
color:black;
}
.a2 { color:blue;}
</style>
</head>
<body style="background-color: rgb(119, 196, 135);">
@@ -96,7 +97,7 @@ a {
<th>Scientific Name</th>
<th>Common Name</th>
<th>Confidence</th>
<th>Wikipedia</th>
<th>Links</th>
</tr>
<!-- PHP CODE TO FETCH DATA FROM ROWS-->
<?php // LOOP TILL END OF DATA
@@ -113,7 +114,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>
<td><a class="a2" href="https://allaboutbirds.org/guide/<?php echo $dbname;?>" target="top">All About Birds</a>, <a class="a2" href="https://wikipedia.org/wiki/<?php echo $dbname;?>" target="top">Wikipedia</a></td>
</tr>
<?php
}