php - How to spell check a brand that the customer input wrong and it exists in my database
Get the solution ↓↓↓I need some idea of how is the best way to spellcheck brands. I have a table in MYSQL with the name of my products and a form that leads to php search in brands table. But the some customer are input the name of products wrong and the search bring nothing in the results example:
The product is Heineken The customer put Heikenem , hekeinem , heken
Another case too is Jack Daniel's The customer input jack daniels, jack Danis
Answer
Solution:
Sometimes we think only by one side, but if we really think in the roles of the subject, we can see another ways to reach the goal, in this case the goal is make the user avoid wrong inputs of specifics words in the search, for this case, the best way is useautocomplete
because, you really don't want words that not exists in your database and the user really want result for things that you have in your database.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: illegal string offset
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.