Foppe Hemminga 6 лет назад
Родитель
Сommit
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
 		$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