phpmysqlmysql-real-escape-string

mysql_real_escape more than once


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?


Solution

  • Yes. You'd get extra unnecessary backslashes.