Hello guys, i would need some help here...
I am new to PHP and SQL so please, be patient!
I have a search string which is like that:
$searchstring=" SELECT * FROM pelatologio where pelatologio.nam e LIKE
'%$name%' ;
I get results only when the first character matches the variable...
Well, that was a nonsense sentence....
Lets say, the name field in the database = "Home"
If i search "home" i get No results
but if i search "Ho" i get results!
As i understand, this has to do something with the capitalization. ..
Can anyone help me?
Thanx in advance!
JBK
I am new to PHP and SQL so please, be patient!
I have a search string which is like that:
$searchstring=" SELECT * FROM pelatologio where pelatologio.nam e LIKE
'%$name%' ;
I get results only when the first character matches the variable...
Well, that was a nonsense sentence....
Lets say, the name field in the database = "Home"
If i search "home" i get No results
but if i search "Ho" i get results!
As i understand, this has to do something with the capitalization. ..
Can anyone help me?
Thanx in advance!
JBK
Comment