Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default Searching Script

    Hey.
    I need a searching script, for websites, so people can search for what they need.
    I remember that you could do something like this with frontpage, but I don't have FrontPage anymore.

    So, can anyone tell me where I can get a script like this?

    Thanks, +rep!

  2. #2
    Join Date
    May 2008
    Location
    Birmingham
    Posts
    307
    Tokens
    0

  3. #3
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    Won't it say like:
    ( WHATEVER HERE ) [box]
    Search on google () Search on YOURSITE.com ()

  4. #4
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Ignore what front page tells you, its code is extremly tacky. If your site it based arround a mysql database you could simply use the wild card to make a search. Someone would search for "hi" and you could use SELECT * FROM tablename WHERE description = '%hi%' or something like that.
    Lets set the stage on fire, and hollywood will be jealous.

  5. #5
    Join Date
    Apr 2007
    Posts
    2,431
    Tokens
    0

    Latest Awards:


  6. #6
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    The HotScripts thingy doesn't work.

  7. #7
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    PHP Code:
    <?php
    $search 
    $_GET ["search"];
    $sql mysql_query "SELECT * FROM `objects` WHERE `title` LIKE '%$search%' OR `description` LIKE '%$search%'" );
    while ( 
    $fetch mysql_fetch_array $sql ) ) {
        echo (
    "<a href=\"view.php?id={$fetch["id"]}\">{$fetch["title"]}</a><br>
    <i>
    {$fetch["description"]}</i>");
    }
    ?>
    That should work

  8. #8
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    Too bad I don't know anything about PHP and MySQL
    I've found a script now, will try it later.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •