I am new to MySQL and everything related to coding, and I need your help! I have a table that contains the following columns:
table1
~~~~~~
id,
question,
answer,
keywords.
the 'keywords' column contains multiple words with a comma in between(ex: word1, word2, word3, etc...) and I have a search bot (written in PHP) whenever the user asks a question (the question should be transformed into an array/keyword) then the query should search for the keywords to find the row that contains the most matching keywords and display the answer.
Is there a correct way of doing this? Thank you in advance!