Created
November 14, 2021 18:49
-
-
Save stevesohcot/39f3b24ef1150bf01f8901d56a05f418 to your computer and use it in GitHub Desktop.
PHP SQL Injection Prevention - function usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $first_name = quote_smart($db1, $_POST['first_name']); | |
| $query = "INSERT INTO Users (`first_name`) VALUES ('$first_name')"; | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment