I'm using prepared statements with some of my data manipulation on a MySQL database. Up to this point, I've always been using the real_escape_string function but everything I've read about using prepared statements says this is no longer necessary due to the separation of logic.
I need to be careful with this project regarding SQL injection. I take as many pre-emptive measures as possible with various data validation techniques and then using the real_escape_string function as the last line of defense. I'm reluctant to let this last line of defense go but then again, I don't want to do any unnecessary processing of data.
Has any one run across any problems or identified any weaknesses using prepared statements and forgoing the use of the real_escape_string function?
I need to be careful with this project regarding SQL injection. I take as many pre-emptive measures as possible with various data validation techniques and then using the real_escape_string function as the last line of defense. I'm reluctant to let this last line of defense go but then again, I don't want to do any unnecessary processing of data.
Has any one run across any problems or identified any weaknesses using prepared statements and forgoing the use of the real_escape_string function?