How to print out search results I created a custom searchpage.tpl.php to print out search form and search results using the following code:

&lt;div class="searchblock"&gt;
&lt;?php
print drupal_get_form('search_form');
?&gt;
&lt;/div&gt;

&lt;div class="search-result &lt;?php print $search_zebra; ?&gt;"&gt;
  &lt;dt class="title"&gt;
    &lt;a href="&lt;?php print $url; ?&gt;"&gt;&lt;?php print $title; ?&gt;&lt;/a&gt;
  &lt;/dt&gt;
  &lt;dd&gt;
    &lt;?php if ($snippet) : ?&gt;
    &lt;p class="search-snippet"&gt;&lt;?php print $snippet; ?&gt;&lt;/p&gt;
    &lt;?php endif; ?&gt;
  &lt;/dd&gt;
&lt;/div&gt;


It shows the search form correctly and when I search a phrase, URL changes to http://domain.com/search/node/phrase
But it doesn't show the search results, How can I make it work please?
Here's the solution:

&lt;div class="searchblock"&gt;
&lt;?php
print drupal_get_form('search_form');
?&gt;
&lt;/div&gt;

&lt;?php
$keys = arg(2);
print search_data($keys, $type = 'node');
?&gt;
&lt;/div&gt;