I need a little help. I want to search in a database the letters that I pass. For example, if I enter the word "steve", the query must look for all the names that contains the letters 'stve'. I tried with:
"SELECT * FROM users WHERE name LIKE 'steve%' or name like '%steve' or name like '%steve%'";
But it doesn't do what I want because it looks for the pattern. The same happens with:
"SELECT * FROM users WHERE INSTR(`name`, 'steve') > 0";
Could you help me please.