mysql_real_escape不止一次 [英] mysql_real_escape more than once

查看:100
本文介绍了mysql_real_escape不止一次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道如果mysql_real_escape数据不止一次是否会有所作为?

I was just wondering whether it makes a difference if I mysql_real_escape data more than once?

因此,如果我先在网站的一部分中转义了数据,然后又在代码的另一部分中转义了.这会是一个问题吗?还是有所作为?

So if I escaped data in one part of my website, and then again in another part of code. Would this be a problem? Or make a difference?

推荐答案

是.您会得到多余的不必要的反斜杠.

Yes. You'd get extra unnecessary backslashes.

这篇关于mysql_real_escape不止一次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆