浏览代码

Wrong table name

Axel Nordh 4 年之前
父节点
当前提交
e6349d2800
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
     }