title: Is possible multiple words search in codeigniter?
body: <p>Its first time I am willing to add multiple search. I am not sure how it should be done. Should I use loop each word in search? or is there any mysql built in function there for it?</p>
  
  <p>What I am thinking it should be like that?</p>
  
  <pre><code> $strSearch = $this-&gt;input-&gt;post("search"); // would hold words etc hello word
  
   $arry = explode(" ", $strSearch);
  
   foreach($arry as $item){
  
   $this-&gt;db-&gt;query("select * from tbl where item like '%$item%');
  
  }
  </code></pre>
  
  <p>Please advice.</p>
  
  <p>Thank You</p>