Results 1 to 2 of 2

Thread: Search??

  1. #1
    Al Bear Guest

    Default Search??

    I have a search. But I want to beable to rank the results. e.hg if two words match then that goes above an answer which just has one. I know i need to add a value next to the result but am user how to go about this anyone got any ideas...

  2. #2
    Join Date
    Dec 1969

    Default RE: Search??

    Under the loop where u r traversing each file, just increment a counter for every matching.Store this in an array(two dimensional, one for filename and other for counter), before it can be overwritten by next iteration.Finally when u r done with all the files, u have the array filled with counter values.Just find the maximum value and display it .<BR><BR>Got it?

Posting Permissions

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