title: multiple image upload in single input
body: <p>I am trying to add multiple image upload in a codeigniter. What i have achieved so far that i can save one image in my database.But i want to add multiple image in single input.How can i do that?? Thanx in advance :)
  This is my controller:</p>
  
  <pre><code>public function customer_insert() {
          $oidVal = implode(",", $this-&gt;input-&gt;post('multiselect'));
          $config['upload_path'] = 'images/';
          $config['allowed_types'] = 'gif|jpg|png|tif|docx|doc|pdf';
          $config['max_size'] = '100000';
          $config['max_width'] = '30000';
          $config['max_height'] = '30000';
          $this-&gt;load-&gt;library('upload', $config);
          $this-&gt;upload-&gt;initialize($config);
  
          if ($this-&gt;upload-&gt;do_upload()) {
              $fata = array('upload_data' =&gt; $this-&gt;upload-&gt;data());
              $path = 'images/' . $fata['upload_data']['orig_name'];
          }
          $data = array(
                'prof_image' =&gt; $path  
          );
          $this-&gt;db-&gt;insert('customer', $data);
      }
  </code></pre>
  
  <p>My view file:</p>
  
  <pre><code>&lt;?php echo form_open_multipart('main/customer_insert');?&gt;
  &lt;?php
  $picture=array(
      'type'=&gt;'file',
      'class'=&gt;'form-control',
      'name'=&gt;"userfile",
  );
  
  $submit=array(
      'name'=&gt;'submit',
      'type'=&gt;'submit',
      'class'=&gt;'btn btn-primary btn-o pull-right next-step btn-wide',
      'value'=&gt;'Save',
  )
  ?&gt;
  
    &lt;div class="form-group"&gt;
                                              &lt;label class="control-label"&gt;
                      Cutomer Image &lt;span class="symbol required"&gt;&lt;/span&gt;
                                              &lt;/label&gt;
                                              &lt;?php echo form_upload($picture);?&gt;
                                          &lt;/div&gt;
  </code></pre>