I have the following PHP code, and the error that I get when I try to run it, says that there is an unexpected EOF error on line 33, which is the final line with the </html>
tag on it. I have checked for any extra spaces, and there are none. I cannot figure out what the error might be.
<body>
<?php
$numOfTeams = " ";
if($numOfTeams > 2)
{
include($numOfTeams);
}
$results = $query->fetchAll();
?>
<table align="center" border="1px" style="width: 300px" color="black">
<th>Club Name</th> <th>Number of Teams</th>
<tr>
<?php
while($row = $query->fetch()) {?>
<td><?php echo $row['cid']; ?></td>
?>
</tr>
<tr>
<?php
while($row = $query->fetch()) {?>
<td><?php echo $row['numOfTeams'];?></td>
?>
</tr>
</table>
</body>
</html>
I'm not sure why there is an error on that line since from what I can see, there is no actual code on that line.