I’m trying to create two bingo boards next to each other. For some reason, this code only gives me one board. Could anyone please tell me what I’m missing here?
I’m not sure if I just missed a silly error or if I’m doing something drastically wrong. Any input would be greatly appreciated! Thank you very much!
<!DOCTYPE html>
<html>
<head>
<title>Bingo Game</title>
<link href = "BingoCard.css" type = "text/css" rel = "stylesheet">
</head>
<body>
<h1> Bingo Game </h1>
<?php
for($i = 0; $i < 2; $i ++){ ?>
<table border = "1">
<tr>
<th>B</th>
<th>I</th>
<th>N</th>
<th>G</th>
<th>O</th>
</tr>
<?php
for ($i = 0; $i < 2; $i++){ ?>
<tr>
<td> <?php print rand(1,15)?> </td>
<td> <?php print rand(16,30)?> </td>
<td> <?php print rand(31,45)?> </td>
<td> <?php print rand(46,60)?> </td>
<td> <?php print rand(61,75)?> </td>
</tr>
<?php } ?>
<tr>
<td> <?php print rand(1,15)?> </td>
<td> <?php print rand(16,30)?> </td>
<td> FREE </td>
<td> <?php print rand(46,60)?> </td>
<td> <?php print rand(61,75)?> </td>
</tr>
<?php
for ($i = 0; $i < 2; $i++){ ?>
<tr>
<td> <?php print rand(1,15)?> </td>
<td> <?php print rand(16,30)?> </td>
<td> <?php print rand(31,45)?> </td>
<td> <?php print rand(46,60)?> </td>
<td> <?php print rand(61,75)?> </td>
</tr>
<?php } ?>
</table>
<?php } ?>
</body>
</html>