I'm testing a web app and I could get Mysql errors by inserting ' in the search field:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' in boolean mode)' at line 1
However, when I do the usual test, entering " ' and 1=1-- " to the search field, I get this:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and 1=1--' in boolean mode)' at line 1
But this should have worked. I noticed that it appends " ' in boolean mode) " to every error it gives to me. My question is, what the problem is here and how I can get my statements performed, without getting this error?