|
@@ -28,13 +28,16 @@
|
|
|
$query = sprintf("SELECT * FROM horses JOIN race_program
|
|
$query = sprintf("SELECT * FROM horses JOIN race_program
|
|
|
ON horses.race_date = race_program.race_date
|
|
ON horses.race_date = race_program.race_date
|
|
|
AND horses.venue = race_program.venue
|
|
AND horses.venue = race_program.venue
|
|
|
|
|
+ AND horses.race = race_program.race
|
|
|
WHERE horses.race_date >= %s
|
|
WHERE horses.race_date >= %s
|
|
|
ORDER BY horses.race_date, horses.venue, horses.race;", $conn->quote(date("Y-m-d")));
|
|
ORDER BY horses.race_date, horses.venue, horses.race;", $conn->quote(date("Y-m-d")));
|
|
|
$stmt = $conn->query($query);
|
|
$stmt = $conn->query($query);
|
|
|
|
|
+ /*
|
|
|
$r = $stmt->fetch(PDO::FETCH_ASSOC);
|
|
$r = $stmt->fetch(PDO::FETCH_ASSOC);
|
|
|
print "<pre>" ;
|
|
print "<pre>" ;
|
|
|
print_r($r);
|
|
print_r($r);
|
|
|
print "</pre>";
|
|
print "</pre>";
|
|
|
|
|
+ */
|
|
|
?>
|
|
?>
|
|
|
<table class="table table-striped table-bordered">
|
|
<table class="table table-striped table-bordered">
|
|
|
<?php
|
|
<?php
|