Show search results in block
Override search-result.tpl.php with below code

&lt;li class="&lt;?php print $classes; ?&gt;"&lt;?php print $attributes; ?&gt;&gt;
  &lt;?php print render($title_prefix); ?&gt;
  &lt;h3 class="title"&lt;?php print $title_attributes; ?&gt;&gt;
    &lt;a href="&lt;?php print $url . '?search_keyword=' . arg(2); ?&gt;"&gt;&lt;?php print $title; ?&gt;&lt;/a&gt;
  &lt;/h3&gt;
  &lt;?php print render($title_suffix); ?&gt;
  &lt;div class="search-snippet-info"&gt;
    &lt;?php if ($snippet): ?&gt;
      &lt;p class="search-snippet"&lt;?php print $content_attributes; ?&gt;&gt;&lt;?php print $snippet; ?&gt;&lt;/p&gt;
    &lt;?php endif; ?&gt;
    &lt;?php if ($info): ?&gt;
      &lt;p class="search-info"&gt;&lt;?php print $info; ?&gt;&lt;/p&gt;
    &lt;?php endif; ?&gt;
  &lt;/div&gt;
&lt;/li&gt;


Then create a view that displays search results using views module and add a contextual filter saying search term, which is returned using PHP Code.

You can read the value in views contextual filter using $_GET['search_keyword'] and return the same.

Once view block is built, enable it in the pages you want !