title: How to add checkboxes inside a column table using echo in PHP (new to coding)
body: <p>I'm trying to add a checkbox to the table column but can't figure out how to manage it.</p>
  
  <p><strong>Here is my html and php code :</strong></p>
  
  <pre><code>&lt;table  border="1"&gt;
    &lt;tr&gt;
      &lt;th&gt;Select&lt;/th&gt;
      &lt;th&gt;ID&lt;/th&gt;
      &lt;th&gt;Title&lt;/th&gt;
      &lt;th&gt;Author's Last Name&lt;/th&gt; 
      &lt;th&gt;Author's First Name&lt;/th&gt;
      &lt;th&gt;Format&lt;/th&gt;
      &lt;th&gt;Price&lt;/th&gt;
      &lt;th&gt;ISBN Code&lt;/th&gt;
    &lt;/tr&gt;
  
  &lt;?php
    while ( $row = mysqli_fetch_array($result) )
  
    echo '&lt;tr&gt;';
    echo '&lt;td&gt;' . &lt;input type="checkbox" value ="''" name="todelete[]" /&gt; . $row['id'] . '&lt;/td&gt;&lt;td&gt;' . $row['title'] . '&lt;/td&gt;&lt;td&gt;' . $row['author_last'] . '&lt;/td&gt;&lt;td&gt;' . $row['author_first'] . '&lt;/td&gt;&lt;td&gt;' . $row['format'] . '&lt;/td&gt;&lt;td&gt;' . $row['price'] . '&lt;/td&gt;&lt;td&gt;' . $row['isbncode'] . '&lt;/td&gt;';
  
     &lt;/tr&gt;
   &lt;/table&gt; 
  
  ?&gt;
  </code></pre>
  
  <p>The code works fine. It shows everything in the table perfectly. </p>
  
  <p>I just can't seem to type the <code>"input type checkbox"</code> in the <strong>echo</strong> statement. When I attempt to add the input the code stops working.</p>