View Single Post
Old 03-25-2004, 02:32 PM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Just leave it as posted, and then after doing a search, you'll see key value pairs that you can use in a custom page. For example, searching for the word test would produce a similar key value pair as the following, assuming the word test is a keyword in your table:

[result_message] => Results 1-9, 9 total, on "test" (0.32 seconds)

To display the 'Results 1-9, 9 total, on "test" (0.32 seconds)' result message in a custom page, just use the following:
PHP Code:
echo $the_output['result_message']; 
That is, if you replace:
PHP Code:
print_r($the_output); 
with the following:
PHP Code:
echo $the_output['result_message']; 
then the only thing you will see onscreen is the following:

Results 1-9, 9 total, on "test" (0.32 seconds)

If you were to replace:
PHP Code:
print_r($the_output); 
with the following:
PHP Code:
include "custom_search_page.php"
then you could use the $the_output['key'] variables in the custom_search_page.php file.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote