greybachelor
New member
Is there a built in PHP function which can be applied on a input taken from a form to make the input less risky for the database. Recently one of the website i manage was hit really bad by hackers and they try to insert malicious codes and scripts. Fortunate enough for me i caught it early and i think i have avoided the damage this time but i cannot keep on checking all the time so i am looking for a read made PHP function or a group of functions which can detect and remove certain strings which should not be going to my database and thus avoiding mysql injections