I have this code that I am trying to make into a grid table. What I have so far generates the results all in one column. How can I make it so that when the first column reaches 10 rows a new column is created?
<table>
<thead>
<tr>
<th>Players</th>
</tr>
</thead>
<tbody>
<?php if( ( $Players = $Query->GetPlayers( ) ) !== false ): ?>
<?php foreach( $Players as $Player ): ?>
<tr>
<td align=center><?php echo "<img src=https://crafatar.com/avatars/".$Player."/?helm&size=32>
<p align=center>".$Player."</p>"; ?></td>
</tr>
<?php endforeach; ?>
<?php else: ?>
<tr>
<td>No players Online.</td>
</tr>
<?php endif; ?>
</tbody>
</table>