Skip to content

Instantly share code, notes, and snippets.

@joelremix
Created May 17, 2013 11:51
Show Gist options
  • Save joelremix/5598585 to your computer and use it in GitHub Desktop.
Save joelremix/5598585 to your computer and use it in GitHub Desktop.
PHP: prevent mysql injection
function prevent($this) {
$this = stripslashes($this);
$this = mysqli_real_escape_string($this);
return $this;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment