I know that mysql_escape_string
is deprecated from 5.3 but what was the actual difference in mysql_real_escape_string
.
What I thought was that mysql_real_escape_string
is the exact same as mysql_escape_string
apart from mysql_real_escape_string
takes a second argument for the mysql resource.
So then I thought well surely there must be some difference as to how strings are handled because there would not be a need for 2 functions.
So then I thought that the difference was purely down to locale and character encodings?