PHP :: I am trying to print an 8x8 grid
<p>I am trying to print an 8x8 grid on php can anyone check this code  is I am doing something wrong</p>

<pre><code>      $row = 0;
  $col = 0;

   print "&lt;form&gt;";
  while ($row &lt;= 8){
      print "&lt;tr&gt;";
   $row++;

     while ($col &lt;= 8){
    print "&lt;td&gt;"; 
    print "&lt;input type="checkbox" name="battle" value="ships"&gt;";
    print "&lt;/td&gt;";
    $col++;

  }


  print "&lt;/tr&gt;";
   )
   print "&lt;/form&gt;";
</code></pre>
