</TH>
 <TH class="tbLogHeader">Location</TH>
 <TH class="tbLogHeader">Dist<br><?php 
echo $units->distanceString();
?>
</TH>
 <TH class="tbLogHeader">Time</TH>
 <TH class="tbLogHeader">Avg<br><?php 
echo $units->velocityString();
?>
</TH>
 <TH class="tbLogHeader">Effort</TH>
</TR>
<?php 
$rides = new RDride(DBconnect(), $units);
$result = $rides->queryRides($currentQuery->getWhereStatement(), $start, $num + 1);
$totalTime = 0;
$totalDist = 0;
$numRides = 0;
//Not really num rides, used to see if more data is available.
while ($rides->parseNextRow($result)) {
    $numRides++;
    if ($numRides > $num) {
        break;
    }
    echo "<TR>";
    echo "<TD class=\"tbLogBody\">" . "<a href=\"showRide.php";
    $tgetvars = $getVars;
    $tgetvars["rideID"] = $rides->f_rideID;
    echo encodeGet($tgetvars) . "\">" . $rides->getDatePart() . " " . $rides->getTimePart() . "</a>&nbsp;" . "<img width='10' height='16' src=\"" . getImgForTemp($rides->f_temperature, $units) . "\">" . "<img width='25' height='16' src=\"s" . $rides->f_sky . ".png\">" . "<img width='16' height='16' src=\"w" . $rides->f_wind . ".png\">" . "</TD>";
    echo "<TD class=\"tbLogBody\">" . fixFieldForHTML($rides->f_riderID_firstName . " " . $rides->f_riderID_lastName, 0) . "</TD>";