title: How to show checkboxes checked and update database
body: <p>I have 80 checkboxes on my page ; these checkboxes belongs to  some options for product..</p>
  
  <p>i store them like this</p>
  
  <pre><code>&lt;input type="checkbox" name="options[]" value="&lt;?php echo $row['value]?&gt;"/&gt;
  </code></pre>
  
  <p><strong>DataBase Structure</strong></p>
  
  <pre><code>**Product_id** | **Option_id**
       1                 16
       1                 45
       1                 68
       1                 78
       1                 80
  </code></pre>
  
  <p>the question is , how should i update options? when user go update page , user should able to see checked options and unchecked too.. How can i show checked options?</p>
  
  <p>i store  option values in database too ,  like this</p>
  
  <pre><code>**id** | **Option_id** |
     1         16
     2         45
     3         68
     4         78      
     ....
     ....
     80
  </code></pre>
  
  <p>Thank you very much for your help , sorry for my english.. </p>
  
  <p>Have a nice day</p>