php - Script to find if a similar question exists -


G'day,

I am creating a frequently asked question system, and users Should be able to see if a similar question is asked. Just wondering if anyone is aware of a script (preferably PHP, or Javascript, or possibly an action), which any kind of A would do?

Thank you.

I think the best You can hope for a simple search engine: split words into question and record words against the question table question (question_id, word)

Then a question like a new question To get a

table query (id, text, ....)

ID $ x with question:

  SELECT prev.id , Questions with common questions as prev.text, count (*) , Prev_words words, curr_words where curr_words.question_id = $ x and curr_words words = prev_words.word and prev_words.question_id = prev.id group ID, COUNT (*) Text command Diissi limit .....?  

You can definitely implement more detailed methods on returning shortlists - but this will definitely be the first step.

c.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -