Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6

Thread: In site search

  1. #1
    Junior Member
    Join Date
    Feb 2007
    Posts
    5
    Member #
    14882
    I have a basic CSS layout for my site, and I've used some really basic PHP so I can keep a static header, search bar, nav bar, etc. Now in the search bar I'd like to put a a fairly complicated (I think) search, that will search the files on my page. But I want there to be a drop down menu where the users can choose a certain field which they would like to search. Similar to Amazon.com where you can select the the product type, and then search for the product.
    Additionally I would also like to give the user an option to select a field and then hit "browse" rather than search to browse products in that field. I need the search results to be displayed in the "body" div of the page.
    How can I achieve this? What search engine scripts are best?
    ps. I tried just putting in just a search, Fluid Dynamics Search Engine, but I could not even figure out how to get that to work as I am completely new to this.

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,715
    Member #
    5580
    Liked
    717 times
    What do you mean by searching your "files"?
    Are you talking about searching a database (MySQL) or are
    you searching other webpages? or actual text files?

    I think there are different types of search engine scripts
    depending on what you want to search.


  4. #3
    Junior Member
    Join Date
    Feb 2007
    Posts
    5
    Member #
    14882
    CORRECTION: By files I did mean webpages (that would contain files). But yes I would like to search for pages

  5. #4
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    Based on the filename of the page or the content of a page?

  6. #5
    Junior Member
    Join Date
    Feb 2007
    Posts
    5
    Member #
    14882
    I guess file name would be more efficient as I could customize each name. Also on my page content would be fairly similar.

  7. #6
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    You could use the power of google to internally search your website. http://www.javascriptkit.com/script/...e_search.shtml

    Or you could code up your own search, do you have experience in PHP?

    One way would be to get the search text off the user and compare that against an array, where the array keys match the array values.

    Example:

    [cars] => "automobiles.php"
    [houses] => "property.php"

    So if the user searched for cars the search result would be automobiles.php

    There are more advanced searches, if you use a database.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:04 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com