search results
-
I’ve been able to display the search results using the code snippet below (thanks to codegurl):
<?php if ($s) { echo 'You searched for '.$s; } ?>
That works fine if there are more than one results, but if a search only returns a single result it seems the variable $s doesn’t get populated, so the above statement gets skipped. The search will return the single article containing the result, but the value of $s doesn’t seem to get set on the resulting page.
Any ideas why that is?
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘search results’ is closed to new replies.