mysql_real_escape_string() leaving slashes in MySQL

前端 未结 9 1088
囚心锁ツ
囚心锁ツ 2020-12-16 16:41

I just moved to a new hosting company and now whenever a string gets escaped using:

mysql_real_escape_string($str);

the slashes remain in the

9条回答
  •  爱一瞬间的悲伤
    2020-12-16 17:18

    What might be the problem (it was with us) that you use mysql_real_escape_string() multiple times on the same var. When you use it multiple times, it will add the slashes.

提交回复
热议问题