Jump to content

Best Match


The Little Guy

Recommended Posts

I have a input box, and a user can input a question, for example lets say he/she inputs:

 

"How many feet are in a mile?"

 

I then have a database with common phrases, that match another table with a category I would like to search the database for which phrase this would best fit.

 

currently the table has these in one field, and in another field has "1" which is a foreign key to the primary key on the other table which has a value "math" in that table.

 

- how many

- how much

- total cost

- quantity

 

The table will expand as my application expands.

 

so what is my best method to take that whole query and search the database to see what method I should use?  Using the query above the database should return that "how many" is the best fit for this question, and that is related to a math question.

 

 

Let me know if I confused anyone :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.