I have many functions like
updateUser($id,$username,$email) updateMusic($id, $music) etc...
Is there a generic function to avoid SQL injections ?
I just want to avoid using mysql_real_escape_string for each parameter I have
$username = mysql_real_escape_string($username); $email= mysql_real_escape_string($email); $music= mysql_real_escape_string($music);