|
|
@@ -44,7 +44,8 @@
|
|
|
print "</pre>";
|
|
|
*/
|
|
|
$query = sprintf("SELECT * FROM race_program
|
|
|
- WHERE race_date >= %s AND torn = TRUE;", $conn->quote($date->format('Y-m-d')));
|
|
|
+ WHERE race_date >= %s AND torn = TRUE
|
|
|
+ ORDER BY race_date, venue, race DESC;", $conn->quote($date->format('Y-m-d')));
|
|
|
$stmt2 = $conn->query( $query );
|
|
|
?>
|
|
|
<table class="table table-striped table-bordered">
|
|
|
@@ -76,7 +77,7 @@
|
|
|
</table>
|
|
|
<?php
|
|
|
$query = sprintf("SELECT * FROM race_program
|
|
|
- WHERE race_date >= %s;", $conn->quote($date->format('Y-m-d')));
|
|
|
+ WHERE race_date >= %s ORDER BY race_date, venue, race DESC;", $conn->quote($date->format('Y-m-d')));
|
|
|
$stmt3 = $conn->query( $query );
|
|
|
?>
|
|
|
<table class="table table-striped table-bordered">
|