View Single Post
Old 01-13-2004, 05:32 PM   #16
MonoNexo
Green Mole
 
Join Date: Jan 2004
Posts: 15
As far as I recall, the only changes I made were to add the code:

PHP Code:
If(eregi("ship"$query_string)) {
if(
$query_string == "ship") {
Header('Location: [url]http://www.aodojo.com/athen_ships.php[/url]');
}
$directhit .= "<br>Did you intend the page <a href='http://www.aodojo.com/athen_ships.php'>Ships</a>?";
}
If(
eregi("archive"$query_string)) {
if(
$query_string == "archive") {
Header('Location: [url]http://www.aodojo.com/lore_archives.php[/url]');
}
$directhit .= "<br>Did you intend the page <a href='http://www.aodojo.com/lore_archives.php'>Alyria Online Archives</a>?";
}
If(
eregi("race"$query_string)) {
if(
$query_string == "race") {
Header('Location: [url]http://www.aodojo.com/fund_races.php[/url]');
}
$directhit .= "<br>Did you intend the page <a href='http://www.aodojo.com/fund_races.php'>Races</a>?";
}

$result_message $result_message $directhit
(Yes, I know there are better ways to code that, but it gets the job done.)
Attached Files
File Type: txt search_function.txt (20.8 KB, 16 views)
MonoNexo is offline   Reply With Quote