#1
  1. No Profile Picture
    Rainer
    Guest
    Devshed Newbie (0 - 499 posts)
    hi,

    i need a search engine that compares the
    search entry with keywords or entries from
    a mysql databse. i extract the length of the search using "strlen()", then compare it with the entries from the database using "similar_text()" and finally calculate the
    similarity in percent. these results are stored in an array with an identifier. what
    i need now is a function that sorts the results by amount, then returns the identifier of the first (=highest). i tried
    it using "max()" but that didn't work somehow... since i'm quite new to php and programming in general i'm not sure whether this is a good way of setting up a search engine

    thanks
  2. #2
  3. No Profile Picture
    Rainer
    Guest
    Devshed Newbie (0 - 499 posts)
    no need to reply, got it myself...

Similar Threads

  1. Replies: 4
    Last Post: February 14th, 2005, 12:58 AM
  2. How would one make a pay-per-click search engine?
    By bllott in forum PHP Development
    Replies: 1
    Last Post: February 13th, 2004, 01:06 AM
  3. iframes that are orphaned by search engine.
    By junpei in forum HTML Programming
    Replies: 2
    Last Post: February 6th, 2004, 01:15 PM
  4. Is there any alternative to fulltext search?
    By irishairpics in forum MySQL Help
    Replies: 2
    Last Post: December 10th, 2003, 03:40 PM
  5. similarity search help
    By deadknight in forum PHP Development
    Replies: 0
    Last Post: November 26th, 2003, 09:02 AM

IMN logo majestic logo threadwatch logo seochat tools logo