View Single Post
Old 06-19-2004, 06:05 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. One way do it this would be to pass a variable $feeling_lucky to search_function.php and then after the following code:
PHP Code:
if ((is_array($final_result)) && (count($final_result) > 0)) {
    
arsort($final_result); 
add something like the following:
PHP Code:
if ($feeling_lucky == true) {
    
// query database to get number one $lucky_site
    
header("Location: $lucky_site");
    exit();

__________________
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