title: Populating checkboxes from MySQL Database
body: <p>In my MySQL database I have a table like this:</p>
  
  <pre><code>Column      Value
  ----------------------------------
  Id          int pk autoinc
  Name        varchar(50)
  Choices     set('a', 'b', 'c', ...)
  ...         ...
  </code></pre>
  
  <p>When this data is being updated, I'm looking to have lots of checkboxes displayed with each checkbox representing a member of Choices. With each checkbox being created in PHP similar to this:</p>
  
  <pre><code>echo "&lt;input type=Checkbox name=$choiceName[i] value=$choiceName[i]&gt;"
  </code></pre>
  
  <p>My question is how do I create these checkboxes from and populate them (by being checked or not) for a particular Id in the table.</p>