|
|
@@ -23,12 +23,16 @@ $matches = $conn->getMatches($countryId, $leagueId);
|
|
|
<th>Odds 1</th>
|
|
|
<th>(Odds X)</th>
|
|
|
<th>Odds 2</th>
|
|
|
-
|
|
|
+ <th>Bet home (true)/away (false)</th>
|
|
|
+ <th>Bet Odds</th>
|
|
|
+ <th>Bet Amount</th>
|
|
|
+ <th> </th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<?php
|
|
|
foreach ($matches as $match) {
|
|
|
+ echo "<form action='makeBet.php' method='post'>";
|
|
|
echo "<tr>";
|
|
|
echo "<td>".$match['gameDate'] . "</td>";
|
|
|
echo "<td>".$match['homeTeamName'] . "</td>";
|
|
|
@@ -36,6 +40,12 @@ $matches = $conn->getMatches($countryId, $leagueId);
|
|
|
echo "<td>". round(100 / $match['homeWinPercent'], 2) . "</td>";
|
|
|
echo "<td>". round(100 / $match['drawPercent'], 2) . "</td>";
|
|
|
echo "<td>". round(100 / $match['awayWinPercent'], 2) . "</td>";
|
|
|
+ echo "<td><input id='betHome' type='checkbox'/></td>";
|
|
|
+ echo "<td><input id='betOdds' type='number'/></td>";
|
|
|
+ echo "<td><input id='betAmount' type='number'/></td>";
|
|
|
+ echo "<td><input id='button' type='submit'/></td>";
|
|
|
+ echo "</form>";
|
|
|
+ echo "</tr>";
|
|
|
}
|
|
|
?>
|
|
|
</tbody>
|