Parcourir la source

Add race time to table

Foppe Hemminga il y a 6 ans
Parent
commit
edaf2d6cfd
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      index.php

+ 3 - 0
index.php

@@ -28,13 +28,16 @@
 		$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")));
 		$stmt = $conn->query($query);
+		/*
 		$r = $stmt->fetch(PDO::FETCH_ASSOC);
 		print "<pre>" ;
 		print_r($r);
 		print "</pre>";
+		*/
         ?>
 <table class="table table-striped table-bordered">
     <?php