Hi, I am trying to encode strings, and it works fine. The problem is that when I try to add it to mysql, I use addslashes(). Now when I do stripslashes() and try to decode the string, the value is completely different. If I do not use addslashes and stripslashes, it works fine, but won't go in database most of the times. What to do? Please help. Should I change the key etc... Thanks
Yes, I'm using it. But I'm also using stripslashes when getting the string from DB. Won't this get me the original string? Thanks
Well i think when you insert the string into the db via mysql_real_escape_string it will be escaped already so you need not use stripslashes.