title: How do I import CSV to mysql using codeigniter
body: <p>I have a list of csv files, which I want to be import to mysql db, using codeigniter.</p>
  
  <p>I tried <code>$this-&gt;load-&gt;library('getcsv');</code> library but how to import the csv without uploading the CSV files to the server, what I meant was just uploading the files to a temp location like how pure coding PHP does.</p>
  
  <p>Any idea?</p>
  
  <p><strong>Example:</strong></p>
  
  <p>I wanted something like this. </p>
  
  <p><strong>HTML:</strong><code>&lt;input type="file" name="csv" /&gt;</code> </p>
  
  <p>to a temp string</p>
  
  <p><strong>Codeigniter:</strong>   <code>$this-&gt;input-&gt;upload['tmp_name']</code> </p>