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
https://forums.phpfreaks.com/topic/184056-best-match/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.