title: Grocery CRUD - Multiple Select and add multiple row to same table once
body: <p><a href="https://i.stack.imgur.com/jKM82.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jKM82.png" alt="enter image description here"></a>In my project there is a dependent dropdown. I want to select multiple data from dropdown sometime all data, and all the data will insert to same table not to many to many relational table. My code is below --- </p>
  
  <pre><code>$this-&gt;load-&gt;library('grocery_CRUD');
  $crud = new grocery_CRUD();
  
  $crud-&gt;set_theme('flexigrid');
  $crud-&gt;set_table('tbl_donation_ppl');
  $crud-&gt;set_relation('fld_home_id', 'tbl_home_name', 'fld_name');
  $crud-&gt;set_relation('fld_user_id','tbl_recipient', 'fld_name');
  $crud-&gt;set_relation('fld_itemgrp_id', 'tbl_donate_group', 'fld_grp_name');
  
  $crud-&gt;columns('fld_don_type', 'fld_home_id', 'fld_user_id', 'fld_itemgrp_id', 'fld_date', 'fld_details');
  $crud-&gt;required_fields('fld_don_type','fld_home_id','fld_user_id', 'fld_itemgrp_id', 'fld_date');
  $crud-&gt;display_as('fld_done_type', 'Donation Type');
  $crud-&gt;display_as('fld_home_id', 'Home Name');
  $crud-&gt;display_as('fld_user_id', 'Receipient');
  $crud-&gt;display_as('fld_itemgrp_id', 'Donation Item');
  $crud-&gt;display_as('fld_date', 'Donation Date');
  $crud-&gt;display_as('fld_details', 'Details');
  
  $crud-&gt;change_field_type('fld_don_type', 'dropdown', array('iftar' =&gt; 'ইফতার','jakat' =&gt; 'যাকাত','home' =&gt; 'ঘর'));
  $crud-&gt;field_type('fld_user_id', 'multiselect');
  
  $fields = array(
                  //District Field
                  'fld_home_id' =&gt; array(
                  'table_name' =&gt; 'tbl_home_name',
                  'title' =&gt; 'fld_name',
                  'relate' =&gt; null
                  ),
                  'fld_user_id' =&gt; array(
                  'table_name' =&gt; 'tbl_recipient',
                  'title' =&gt; 'fld_name',
                  'id_field' =&gt; 'fld_uid',
                  'relate' =&gt; 'fld_home_id',
                  'data-placeholder' =&gt; 'Select Home'
                  ),
              );
  
              $config = array(
                  'main_table' =&gt; 'tbl_home_name',
                  'main_table_primary' =&gt; 'fld_uid',
                  'url' =&gt; base_url() . 'index.php/libraries/makedonationppl/'
              );
  
  $usrs = new gc_dependent_select($crud, $fields, $config);
  
  $js = $usrs-&gt;get_js();
  $output = $crud-&gt;render();
  
  $output-&gt;output.=$js;
  
  $this-&gt;__mycrud($output);
  </code></pre>
  
  <p>I want to multi select 'tbl_recipient'  and add as many row as selected item. But I can select only one item at once to tbl_donation_ppl table, is there any way to achieve it? Thanks in advance.</p>
  
  <p>. </p>