Hi all. I'm pretty new to php. I'm doing a basic table and trying to write 20 rows of 20 <td> (totalling 400).

What I'm doing is working, but I know there's a way to do it better; I just can't figure out how.

I appreciate any help.

PHP Code:
<h2 class="ribbon"><span class="ribbon-content">Lego Points</span></h2>
<table class="table table-striped table-bordered">
<tr><th colspan="20"><h2>Lego Points</h2></th></tr>

<?php 

$num 
1;
echo 
"<tr>";
while ( 
$num <=20 ) {

echo 
'<td class="box"><input type="checkbox" name="radio">' $num "</td>";
$num++;

}
echo 
"</tr>";

$num 21;
echo 
"<tr>";
while ( 
$num <=40 ) {

echo 
'<td class="box"><input type="checkbox" name="radio">' $num "</td>";
$num++;

}
echo 
"</tr>";

$num 41;
echo 
"<tr>";
while ( 
$num <=60 ) {

echo 
'<td class="box"><input type="checkbox" name="radio">' $num "</td>";
$num++;

}
echo 
"</tr>";

$num 61;
echo 
"<tr>";
while ( 
$num <=80 ) {

echo 
'<td class="box"><input type="checkbox" name="radio">' $num "</td>";
$num++;

}
echo 
"</tr>";

$num 81;
echo 
"<tr>";
while ( 
$num <=100 ) {

echo 
'<td class="box"><input type="checkbox" name="radio">' $num "</td>";
$num++;

}
echo 
"</tr>";

?>
</table>