Hi trouble with str_replace and search query
Posted: Wed Feb 04, 2009 4:33 am
Hi all,
I am doing a search functionality.I need to get data entered with ', 5 etc..
So after entering data in search filed
The keyword is converetd to
I am doing a search functionality.I need to get data entered with ', 5 etc..
So after entering data in search filed
The keyword is converetd to
Code: Select all
$variable=str_replace("'","%\'",$variable);
[ /code]
Then quotes problem is solved then I need % to work
Now when entering % all fields are displaying . how I should remove that..
Regrads