title: How can I search multiple words at once?
body: <p>I'm trying to use this script for searching more then one words at a time from a database. Now the problem is that my script only search one word once. But i want to search more words at once like (quick home jquery) if the database contains those words, then it will show the result. How could I do this with this script can any body tell me? or how could i search any keyword ? please help me... </p>
  
  <pre><code>&lt;?php
  
  
  include_once ('database_connection.php');
  
  if(isset($_GET['keyword'])){
      $keyword =  trim($_GET['keyword']) ;
  $keyword = mysqli_real_escape_string($dbc, $keyword);
  
  
  
  $query = "select topictitle,topicdescription from topics where topictitle like '%$keyword%' or topicdescription like '%$keyword%'";
  
  //echo $query;
  $result = mysqli_query($dbc,$query);
  if($result){
      if(mysqli_affected_rows($dbc)!=0){
            while($row = mysqli_fetch_array($result,MYSQLI_ASSOC)){
       echo '&lt;p&gt; &lt;b&gt;'.$row['topictitle'].'&lt;/b&gt; '.$row['topicdescription'].'&lt;/p&gt;'   ;
      }
      }else {
          echo 'No Results for :"'.$_GET['keyword'].'"';
      }
  
  }
  }else {
      echo 'Parameter Missing';
  }
  
  
  
  
  ?&gt;
  </code></pre>