mysql-escape-string

mysql_escape_string VS mysql_real_escape_string

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...

Is there a native CodeIgniter function that does the reverse of $this->db->escape()?

I was looking for a function that does the reverse of $this->db->escape() to get the original string when it was still unescaped. I have tried searching for it in the Codeigniter docs. I don't think I can find one. I also tried finding a native PHP function for it( since it uses mysql_real_escape_string when using MySQL) but so far the...