Possible Duplicate:
Best way to prevent SQL injection in PHP?
MySQL not allowing me to enter Irish surnames without my entering \ before the ' in the form field. What is the best way to prepare the data so the ' is automatically escaped.
Possible Duplicate:
Best way to prevent SQL injection in PHP?
MySQL not allowing me to enter Irish surnames without my entering \ before the ' in the form field. What is the best way to prepare the data so the ' is automatically escaped.