Axel Nordh há 4 anos atrás
pai
commit
3d38598497

+ 6 - 0
OddsJavaFx/src/web/matchTable.php

@@ -6,6 +6,8 @@ $conn = new WebDbConnection( );
 $countryId = $_POST['countrySelector'];
 $leagueId = $_POST['leagueSelector'];
 
+$conn->getBettingStats($leagueId);
+
 $matches = $conn->getMatches($countryId, $leagueId);
 $leagueInfo = $conn->getLeagueInfo($leagueId)[0];
 $betMargin = 1 + ($leagueInfo['betMargin'] / 100);
@@ -57,4 +59,8 @@ $betMargin = 1 + ($leagueInfo['betMargin'] / 100);
 </tbody>
 </table>
 
+<h2>Stats</h2>
+
+
+
 </body>

+ 9 - 0
OddsJavaFx/src/web/webDbConnection.php

@@ -65,6 +65,7 @@ class WebDbConnection {
         "DATE(gameDate) >= DATE(NOW()) " .
         "AND res.leagueId = " . $leagueId .
         " AND res.countryId = " . $countryId .
+        " AND homeScore >= 0" .
         " ORDER BY gameDate ASC";
         
         
@@ -133,4 +134,12 @@ class WebDbConnection {
         
         $this->getSqlAsArray($sql);
     }
+    
+    private function getGamesBySeason($leagueId, $season) {
+        
+    }
+    
+    public function getBettingStats($leagueId) {
+        
+    }
 }