title: Codeigniter: result_array() to form_multiselect()
body: <p>I am pulling a queried result_array() and placing that array as the fields to select from in a form_multiselect(). What I can't seem to figure out is why the multi-select shows the array indexes followed by each queried result. Is this a problem with my array or are there form_multiselect options I am missing for the array indexes to not be shown?</p>
  
  <p>And my code below:</p>
  
  <pre><code>public function get_tags() {
      $this-&gt;db-&gt;select('tag_name');
      $this-&gt;db-&gt;distinct();
      $this-&gt;db-&gt;from('offers_tags');
  
      $query = $this-&gt;db-&gt;get();
  
      $tags = $query-&gt;result_array();
  
      return $tags;  
  }
  </code></pre>
  
  <p>My controller:</p>
  
  <pre><code>$this-&gt;data['tags']=$this-&gt;offer_model-&gt;get_tags();
  </code></pre>
  
  <p>My view:</p>
  
  <pre><code>&lt;div class="control-group"&gt;
              &lt;?= form_label('Tags: ', 'tag_targets', $label_attr);?&gt;
  
              &lt;div class="controls"&gt;
                  &lt;?= form_multiselect('tag_targets[]',$tags,'','id="geo-select"');?&gt;
              &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>