November 10th, 1999, 05:05 AM
-
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
November 10th, 1999, 08:22 AM
-
no need to reply, got it myself...