浏览代码

Add race time to table

Foppe Hemminga 6 年之前
父节点
当前提交
edaf2d6cfd
共有 1 个文件被更改,包括 3 次插入0 次删除
  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