Explorar o código

Wrong table name

Axel Nordh %!s(int64=4) %!d(string=hai) anos
pai
achega
e6349d2800
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      OddsJavaFx/src/web/webDbConnection.php

+ 1 - 1
OddsJavaFx/src/web/webDbConnection.php

@@ -139,7 +139,7 @@ class WebDbConnection {
     
     public function addBet($matchId, $betOdds, $betAmount, $betType) {
         
-        $sql = "INSERT INTO bets (matchId, odds, amount, betOn) VALUES ($matchId, $betOdds, $betAmount, '$betType')";
+        $sql = "INSERT INTO Bets (matchId, odds, amount, betOn) VALUES ($matchId, $betOdds, $betAmount, '$betType')";
         
         $this->getSqlAsArray($sql);
     }