title: Creating search engine in PHP
body: <p>I have created search engine so when someone type in search box it takes data from my database and show the results in images.</p>
  
  <p>Everything is working fine but if I have data in database with Name like 'Lamborghini', when someone type in search box 'lambo' or 'Lamborghini' it is working fine and show the result but when he types 'Lamborghini car' it is not showing any result.</p>
  
  <p><strong>Here is my PHP Code:</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;link href="css/imgpages.css" rel="stylesheet" type="text/css"&gt;
  
      &lt;head&gt;
          &lt;title&gt;Search the Database&lt;/title&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
  
      &lt;form action="" method="post"&gt;
       Search: &lt;input type="text" name="term" /&gt;&lt;br /&gt;
      &lt;input type="submit" name="submit" value="Submit" /&gt;
      &lt;/form&gt;
  
  
  
      &lt;/body&gt;
   &lt;/html&gt;
  
   &lt;?php
  include("connection.php");
  
  $term = $_POST['term'];
  
  
  $query = mysql_query("select * from save_data where Title like '%$term%'");
  
  
  while($row = mysql_fetch_array($query)) {
  
      $post_id = $row['ID'];
      $title = $row['Title'];
      $image = $row['Name'];
  
  ?&gt;
      &lt;div id="body"&gt;
  
      &lt;a href="pictures.php?title=&lt;?php echo $title; ?&gt;"&gt;
      &lt;div id="title"&gt;&lt;?php echo $title; ?&gt;&lt;/div&gt;&lt;/a&gt;
  
      &lt;a href="pictures.php?title=&lt;?php echo $title; ?&gt;"&gt;
      &lt;img  src='uploads/&lt;?php echo $image; ?&gt;' width='140' height='140'&gt;&lt;/a&gt;
      &lt;/div&gt;
  
  &lt;?php } ?&gt;
  </code></pre>