</tr> <?php $tour_year = $GLOBALS['year']; $results = $database->getTourResults($tour_year); $result_count = count($results); for ($i = 0; $i < $result_count; $i++) { $cyclist_id = $results[$i]['result_cyclist_id']; $place = $results[$i]['result_place']; $name = $database->getCyclistName($cyclist_id); $doper = $database->checkIfDoper($cyclist_id); $doper_description = $database->getDoperDescription($cyclist_id); if ($results[$i]['result_cyclist_dq'] === "1") { $dq = "Yes"; dqCount(); } $ban_length = $database->getBanLength($cyclist_id); if ($ban_length != "Non-Doper" && $ban_length != "0 months") { banCount(); } if ($doper != "No") { echo "<tr class=\"doper\">"; } else { echo "<tr>"; } echo "<td>" . $place . "</td>"; echo "<td>" . $name . "</td>"; echo "<td>" . $doper . "</td>"; echo "<td>" . implode(", ", $doper_description) . "</td>"; echo "<td>" . $dq . "</td>"; echo "<td>" . $ban_length . "</td>"; echo "</tr>";