Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cleanuserinput($dirty){
- if (get_magic_quotes_gpc()) {
- $clean = mysql_real_escape_string(stripslashes($dirty));
- }else{
- $clean = mysql_real_escape_string($dirty);
- }
- return $clean;
- }
Advertisement
Add Comment
Please, Sign In to add comment