title: Search shows all factories instead of the one i search
body: <p>I have a search function in my CodeIgniter app but it does not quite work and i don't know what's the problem because i'm fairly new to CodeIgniter.</p>
  
  <p>My model function:</p>
  
  <pre><code>function get_search()
  {
      $match = $this-&gt;input-&gt;post('search');
      $this-&gt;db-&gt;like('Bedrijfsnaam', $match);
      $this-&gt;db-&gt;or_like('Website', $match);
      $this-&gt;db-&gt;or_like('Email', $match);
      $query = $this-&gt;db-&gt;get('bedrijven');
  
      return $query-&gt;result();
  }
  </code></pre>
  
  <p>My controller functions</p>
  
  <pre><code>function search()
  {
      $this-&gt;load-&gt;view('header');
      $this-&gt;load-&gt;view('search');
      $this-&gt;load-&gt;view('footer');
  }
  
  function searchresults()
  {
      $this-&gt;load-&gt;model('Bedrijven_model');
      $data['query'] = $this-&gt;Bedrijven_model-&gt;get_search();
      $this-&gt;load-&gt;view('header');
      $this-&gt;load-&gt;view('searchresults', $data);
      $this-&gt;load-&gt;view('footer');
  }
  </code></pre>
  
  <p>the first function is just for the input field. the second is for the result.</p>
  
  <p>My views:</p>
  
  <p>My searchfield view:</p>
  
  <pre><code>&lt;div id="bigcontent"&gt;
  &lt;h2&gt;Bedrijven zoeken&lt;/h3&gt;
  
  &lt;form name="input" action="searchresults" method="get"&gt;
  &lt;input type="search" name="search" id="search"&gt;
  &lt;input type="submit" value="Zoeken"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My results page:</p>
  
  <pre><code>&lt;div id="bigcontent"&gt;
  &lt;table&gt;
  &lt;tr&gt;&lt;th&gt;Bedrijf&lt;/th&gt;&lt;th&gt;Website&lt;/th&gt;&lt;th&gt;email&lt;/th&gt;&lt;/tr&gt;
  &lt;?php foreach($query as $item):?&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;?= $item-&gt;Bedrijfsnaam ?&gt;&lt;/td&gt;
  &lt;td&gt;&lt;?= $item-&gt;Website ?&gt;&lt;/td&gt;
  &lt;td&gt;&lt;?= $item-&gt;Email ?&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;?php endforeach;?&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Hope someone sees the problem :)</p>
  
  <p>a few screenshots to clear up what i mean:
  This is the searchfield:</p>
  
  <p><img src="https://i.stack.imgur.com/2rSTp.png" alt="the search field"></p>
  
  <p>This is the resultpage:</p>
  
  <p><img src="https://i.stack.imgur.com/j3tWg.png" alt="results page"></p>
  
  <p>Thanks :)</p>