Ver código fonte

table bet results

Axel Nordh 4 anos atrás
pai
commit
224ea254a4
1 arquivos alterados com 24 adições e 1 exclusões
  1. 24 1
      OddsJavaFx/src/web/index.php

+ 24 - 1
OddsJavaFx/src/web/index.php

@@ -68,8 +68,31 @@ $leagues = $conn->getLeagues();
         }
     }
     
-    var_dump($result);
+    ?>
+    <table>
+    <thead>
+    <tr>
+    <th>League</th>
+    <th>Wins</th>
+    <th>Losses</th>
+    <th>Result</th>
+    <th>Pending</th>
+    </tr>
+    </thead>
+    <tbody>
+    <?php 
+    foreach ($result as $res) {
+        echo "<tr>";
+        echo "<td>" . $res . "</td>";
+        echo "<td>" . $res['wins'] . "</td>";
+        echo "<td>" . $res['losses'] . "</td>";
+        echo "<td>" . $res['result'] . "</td>";
+        echo "<td>" . $res['pending'] . "</td>";
+    }
+    
   ?>
+  </tbody>
+    </table>
 
 </body>