title: how store multiple array value in data base?
body: <p><a href="https://i.stack.imgur.com/fMsuM.png" rel="nofollow noreferrer">view</a></p>
  
  <p><a href="https://i.stack.imgur.com/Sd2uG.png" rel="nofollow noreferrer">error</a> </p>
  
  <pre><code>model:
  
   function add_wliempmap($params)
  
  { 
     foreach ($params as$row) 
      {
  
      $this-&gt;db-&gt;insert('tbl_wli_peremp_map',$row);
      $query= $this-&gt;db-&gt;insert_id();
    // return$query-&gt;result();
  }
  }
  controller:
   public function submit()
  {   
  
     $data['data']=array('wid' =&gt; $this-&gt;input-&gt;post('wid'),'eid' =&gt; $this-&gt;input-&gt;post('eid')
                     );
  
      $this-&gt;Wliempmap_model-&gt;add_wliempmap($data);
          // var_dump($_REQUEST);
          // exit;
  
  }
  </code></pre>
  
  <p>Above model $row variable have array value I want to store this variable value in database how to pass this variable in controller multiple value with example ?</p>