replaced the mysql_real_escape_string function with $this->db->escape fo...

...r compatibility