|
|
@@ -73,7 +73,39 @@
|
|
|
</tr>
|
|
|
<?php endwhile; ?>
|
|
|
</tbody>
|
|
|
- \</table>
|
|
|
+ </table>
|
|
|
+ <?php
|
|
|
+ $query = sprintf("SELECT * FROM race_program
|
|
|
+ WHERE race_date >= %s;", $conn->quote($date->format('Y-m-d')));
|
|
|
+ $stmt3 = $conn->query( $query );
|
|
|
+ ?>
|
|
|
+ <table class="table table-striped table-bordered">
|
|
|
+ <caption>All races</caption>
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>venue</th>
|
|
|
+ <th>state</th>
|
|
|
+ <th>date</th>
|
|
|
+ <th>race</th>
|
|
|
+ <th>start</th>
|
|
|
+ <th>utc</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <?php
|
|
|
+ while ( $row = $stmt3->fetch( PDO::FETCH_ASSOC ) ) : ?>
|
|
|
+ <tr>
|
|
|
+ <!-- <td><?php // echo htmlspecialchars($row['id']); ?></td> -->
|
|
|
+ <td><?php echo htmlspecialchars($row['venue']); ?></td>
|
|
|
+ <td><?php echo htmlspecialchars($row['state']); ?></td>
|
|
|
+ <td><?php echo htmlspecialchars($row['race_date']); ?></td>
|
|
|
+ <td><?php echo htmlspecialchars($row['race']); ?></td>
|
|
|
+ <td><?php echo htmlspecialchars(substr($row['start_time'], 0, -3)); ?></td>
|
|
|
+ <td><?php $t = strtotime($row['utctime']); echo gmdate('H:i', $t); ?></td>
|
|
|
+ </tr>
|
|
|
+ <?php endwhile; ?>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
<table class="table table-striped table-bordered">
|
|
|
<?php
|
|
|
$table_head = <<<TABLEHEAD
|