mysqli转义需要连接mysqli_real_escape_string(connection,escapestring); mysql转义不需要连接mysqli_escape_string(connection,escapestring); 转载于:https://www.cnblogs.com/gjack/p/7242812.html