ChrisMacPherson
Programmer
I am having difficulty understanding my results when I enter search terms in to my LIKE statement (using PHP here).
My statement is :
If I use "Golf" as $searchTerms I get 3 results
If I use "golf" as $searchTerms I get 4 results
It says in the mysql manual, that LIKE is case-insensitive. How can this be?
Any suggestions how to achieve real case-insensitivity?
Chris MacPherson
My statement is :
Code:
"SELECT stuff
FROM table
WHERE status = 'active' AND areaInfo LIKE '%" . $searchTerms . "%'";
If I use "Golf" as $searchTerms I get 3 results
If I use "golf" as $searchTerms I get 4 results
It says in the mysql manual, that LIKE is case-insensitive. How can this be?
Any suggestions how to achieve real case-insensitivity?
Chris MacPherson