PHP Creating Two Similar Elements Next to each Other

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>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s