title: how to insert multiple fields data in one column in codeigniter
body: <p>I have a form consist of multiple checkbox and input fields, I want to insert that data into a single column of a table, here is my form:</p>
  
  <pre><code> &lt;div id="container"&gt;
          &lt;h1&gt;property Detail&lt;/h1&gt;
      &lt;form action="" method="post"&gt;
      &lt;table&gt;
      &lt;tr&gt;
      &lt;td&gt; 
      Possesion
      &lt;input type="checkbox" name="feature[]" value="possesion"&gt;
      &lt;/td&gt;
      &lt;td&gt; 
      Possesion1
      &lt;input type="checkbox" name="feature" value="possesion1"&gt;
      &lt;/td&gt;
      &lt;td&gt; 
      Possesion2
      &lt;input type="checkbox" name="feature" value="possesion2"&gt;
      &lt;/td&gt;
      &lt;td&gt; 
      Possesion3
      &lt;input type="checkbox" name="feature" value="possesion3"&gt;
      &lt;/td&gt;
      &lt;td&gt; 
      Possesion4
      &lt;input type="checkbox" name="feature" value="possesion4"&gt;
      &lt;/td&gt;
      &lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt; 
      &lt;td&gt; &lt;input type="submit" name="submit" value="submit"&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;/table&gt;
      &lt;/form&gt;
  
      &lt;/div&gt;
  </code></pre>
  
  <p>here is my controller:</p>
  
  <pre><code> function index(){
              $this-&gt;load-&gt;view('form');
  
              if($_POST){
  
  
              $data_feature  = array (
             'feature' =&gt; $_POST['feature']
               );
  
              $data['var']= $this-&gt;Mdata-&gt;p_detail($data_feature);
              }   
  
          }
  </code></pre>
  
  <p>and here is my model:</p>
  
  <pre><code>   function p_detail($data_feature){
               $this-&gt;db-&gt;insert('feature',$data_feature);
               return $this-&gt;db-&gt;insert_id();
  
  
  }
  </code></pre>
  
  <p>I am getting only one feature value in my table, I want to get all the values of check boxes which user checked.</p>
  
  <p>Regards</p>