-1
Good morning, if I search "Memory" in an input,
I made a code to take the accent and is going to query like this: "Memoria"
Soon returns to me those who are "Memory" The problem is that my database also has words written "Memory"
I need, when consulting "Memory" (in the input)
Bring me both with and without accentuation The same for when consult "Memory"
My problem is I can’t change the Where, to take either one or the other.
The data is words created by a user, sometimes it places accentuation, sometimes not, then my database gets the alternating data.
If you want to return both "Memory" and "Memory" a simple query using LIKE already resolves (Example: SELECT * FROM WORDS WHERE WORD LIKE "Memory";) This example should return the two results. But one important piece of information that should be highlighted is that some Collations are case sensitive and others are not. .
– Leandro Paiva
Possible duplicate of Query in mysql with php does not return result in queries with accents
– Ricardo Pontual
Hi, I already use the like %word% and it is not working, the problem should be in the same colation, is this that I use in the bank: latin1_swedish_ci but I can not solve, without changing the colation in the bank, after all it is working perfectly, it’s got to be a code on Where or something
– Barack