I have a search process with jQuery+Php...
I have to use " .... like '%entered_keyword%' ..." in mysql query.

Here is the problem the Php changes "%"   to " "
However, when someone enters "% % % % % % % %"   (8 times percent
sign), it brings all datas on mysql.

If i use the changing function two times like
changepercentsign(percentsign($entered_keyword))
8 times doesnt work but for this time "% % % % % % % % % % % % % %
%" (15 times percent sign) works and brings all datas.

What do you think? How can i get rid of this?



Reply via email to