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_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><a href="/By_Date/<?php echo $rows['Date'];?>"/><?php echo $rows['Date'];?></a></td>
<td><?php echo $rows['Time'];?></td> <td><?php echo $rows['Time'];?></td>
<td><a href="https://allaboutbirds.org/guide/<?php echo $dbname;?>" target="top"/>More Info</a></td>
</tr> </tr>
</table> </table>
</div> </div>
+2 -2
View File
@@ -221,7 +221,7 @@ while($rows=$stats ->fetch_assoc())
<th>Scientific Name</th> <th>Scientific Name</th>
<th>Occurrences</th> <th>Occurrences</th>
<th>Highest Confidence Score</th> <th>Highest Confidence Score</th>
<th>Wikipedia Link</th> <th>Links</th>
</tr>"; </tr>";
while($rows = $specificstats->fetch_assoc()) { while($rows = $specificstats->fetch_assoc()) {
$dbname = preg_replace('/ /', '_', $rows['Com_Name']); $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 "<a href=\"../By_Scientific_Name/$dbsciname\"/>";echo $rows['Sci_Name']; echo "</a></td>
<td>";echo $rows['COUNT(*)'];echo "</td> <td>";echo $rows['COUNT(*)'];echo "</td>
<td>";echo $rows['MAX(Confidence)'];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>"; </tr>";
}} }}
?> ?>
+3 -2
View File
@@ -64,6 +64,7 @@ a {
text-decoration:none; text-decoration:none;
color:black; color:black;
} }
.a2 { color:blue;}
</style> </style>
</head> </head>
<body style="background-color: rgb(119, 196, 135);"> <body style="background-color: rgb(119, 196, 135);">
@@ -96,7 +97,7 @@ a {
<th>Scientific Name</th> <th>Scientific Name</th>
<th>Common Name</th> <th>Common Name</th>
<th>Confidence</th> <th>Confidence</th>
<th>Wikipedia</th> <th>Links</th>
</tr> </tr>
<!-- PHP CODE TO FETCH DATA FROM ROWS--> <!-- PHP CODE TO FETCH DATA FROM ROWS-->
<?php // LOOP TILL END OF DATA <?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_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><a href="/By_Common_Name/<?php echo $dbname;?>"/><?php echo $rows['Com_Name'];?></a></td>
<td><?php echo $Confidence;?></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> </tr>
<?php <?php
} }