reverse mysql_real_escape_string

后端 未结 3 832
北恋
北恋 2021-02-19 08:28

I have a piece of data that is large and will probably contain quotes and double quotes.

I\'m using mysql_real_escape_string() to store it safely.

W

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-19 08:50

    Do you use magic quotes?

    Note: If magic_quotes_gpc is enabled, first apply stripslashes() to the data. Using this function [mysql_real_escape_string] on data which has already been escaped will escape the data twice.

提交回复
热议问题