Explorar el Código

table bet results

Axel Nordh hace 4 años
padre
commit
224ea254a4
Se han modificado 1 ficheros con 24 adiciones y 1 borrados
  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>