So this is something we all should know about, and played on my mind when I first seen it..
I know that mysql_escape_string
is depreciated 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 surly 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. ?
can anyone clear this up for me ?