|
|
@@ -25,12 +25,13 @@
|
|
|
echo "Connected to the <strong>$db</strong> database successfully!";
|
|
|
}
|
|
|
|
|
|
+ $date = new DateTime("now", new DateTimeZone('Australia/Melbourne') );
|
|
|
$query = sprintf("SELECT * FROM horses JOIN race_program
|
|
|
ON horses.race_date = race_program.race_date
|
|
|
AND horses.venue = race_program.venue
|
|
|
AND horses.race = race_program.race
|
|
|
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->format('Y-m-d')));
|
|
|
$stmt = $conn->query($query);
|
|
|
/*
|
|
|
$r = $stmt->fetch(PDO::FETCH_ASSOC);
|