title: grocery crud multiselect field
body: <p>No problem to use this function 'multiselect field' which show on this website:  </p>
  
  <pre><code>http://www.grocerycrud.com/documentation/options_functions/field_type
  
  $crud-&gt;field_type('fruits','multiselect',
                     array( "1"  =&gt; "banana", "2" =&gt; "orange", "3" =&gt; "apple"));
  </code></pre>
  
  <p>Next step, i try to extract data from database to replace the 'array' in the formulae above but failed, pls advise.  </p>
  
  <pre><code>$this-&gt;db-&gt;select('employeeNumber');
  $a = $this-&gt;db-&gt;get('employees')-&gt;result();
  $crud-&gt;field_type('firstName', 'multiselect', $a);  
  </code></pre>
  
  <p>I'm getting result like  </p>
  
  <pre><code>Array ( [0] =&gt; stdClass Object ( [employeeNumber] =&gt; 1002 )  
          [1] =&gt; stdClass Object ( [employeeNumber] =&gt; 1056 )
  </code></pre>
  
  <p>Hmm... how to make it into this format, any advise?:  </p>
  
  <pre><code>array( "1"  =&gt; "banana", "2" =&gt; "orange", "3" =&gt; "apple")
  </code></pre>