View Single Post
Old 04-01-2004, 07:01 PM   #6
Head Mole
Charter's Avatar
Join Date: May 2003
Posts: 2,539
Hi. Using the same method as above, you could include header.php, sidebar.php, and footer.php in a template, or you could also make your own custom PHP search page as follows.

In the search.php file do the following:
PHP Code:
$arrayout phpdigSearch($id_connect$query_string$option$refine,

if (
is_file("custom_search.php")) {
} else { exit(); } 
Save the following in the same directory as the search.php file:
PHP Code:
// custom_search.php

if (eregi("custom_search.php",$_SERVER['SCRIPT_FILENAME']) || 
eregi("custom_search.php",$_SERVER['REQUEST_URI'])) {



if (!empty(
$arrayout['results'])) {
$num_out count($arrayout['results']);
} else { 
$num_out 0; }
$num_start $lim_start 1;
$num_end $lim_start $num_out;

for (
$i=$num_start$i<=$num_end$i++) {
$i.". ";
$arrayout2 $arrayout['results'][$i];


Remember to remove any "word" wrapping in the above code.
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