Mysql injection solution

1. Regular expressions filter sql keywords. Generally, these data are not allowed in parameters when passing parameters.

2. Data Type Validation

3. Data length verification

4, special character replacement

5. The MySQL extension for PHP provides the mysqli_real_escape_string() function to escape special input characters.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326040886&siteId=291194637