Link to home
Start Free TrialLog in
Avatar of bxglxbxglx2000
bxglxbxglx2000

asked on

PHP: If this function can anti - sql injection?

If this function can anti - sql injection?

function anti_sql_injection($query,$dblink) {
            $query= @trim($query);
            if(get_magic_quotes_gpc()) {
                  $query= stripslashes($query);
            }
            return mysql_real_escape_string($query,$dblink);
}

Thank you!
ASKER CERTIFIED SOLUTION
Avatar of Loganathan Natarajan
Loganathan Natarajan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial