Use this efficient function to make all variables safe from hacking and tampering of data . Use this basic function to validate an extra extend and increase security for PHP POST, GET and REQUEST variables.
function makeVariablesSafe($mystring) {
$mystring= trim($mystring);
return $mystring= mysql_real_escape_string($mystring);
}
function makeVariablesSafe($mystring) {
$mystring= trim($mystring);
return $mystring= mysql_real_escape_string($mystring);
}
No comments:
Post a Comment