Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SQL中的以下等价物是什么?
MySQL的PHP函数:
mysqli_real_escape_string($POST['password']);
转义是为了正确准备 SQL 语句。MySQL 中没有等价物,因为当它到达该层时,它应该首先被转义。
使用mysqli_real_escape_string也是你做错事的标志,因为你应该使用该bind_param方法而不是这种超低级调用。
mysqli_real_escape_string
bind_param