Hello!
I use a little search script in my site.
After post the search form, i get this variable:
$var = $_GET[$q] ;
$trimmed = trim($var);
Then i try to search in database:
$query = "select * from test where acc like \"%$trimmed%\"";
$numresults=mysql_query($query);
$numrows=mysql_num_rows($numresults);
.......
I try to search for " test " word. (In my database i have a row with " Test " word.) but found nothing. If i search " TEST " then nothing. Only then i get the result if i search exactly the word for in the database. (Test).
I read somewhere, that " LIKE " is case INsensitive.
Could you help me have can i modify the code, to search case Insensitive?
Thank you.