SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot pnathan's Avatar
    Join Date
    Sep 2001
    Location
    Amsterdam
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Search Like SitePoint

    I have built a fairly complex search facility for my database and I am looking to improve it and I think the Sitepoint forums search rocks. Especially the way the words that are searched for are highlighted in the search results. Does anybody know how this is done?
    I have two tickets to the Crows, sweet.

  2. #2
    SitePoint Wizard dethfire's Avatar
    Join Date
    Aug 2000
    Posts
    2,477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i don't know php, but I have an idea how the search functions work.

    the search form is quite simple, it's just run by an SQL statement with variables, where depending on what you pick for search functions the variables will change and so will your results.

    To perform the highlight results, the page is merely parsed through with a function searching for the words your search for and if it finds a word it plugs in a highlight tag
    Free Science Homework Help
    http://www.physicsforums.com


Bookmarks

Posting Permissions

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