I am having trouble with \ (backslashes) entered from a form and inserted to mysql. It is just leaving them off. I am using addslashes() but for the backslashes it doesn't seem to work??
Maybe the server you're using has magic quotes enabled for PHP. If this option is enabled PHP automatically adds slashes when form data is posted and if you use addslashes(), then another set of slashes is added. Echo out phpinfo() and look for magic_quotes_gpc under Configuration/PHP Core.
You still need to use stripslashes() to get rid of the added slashes because magic_quotes_gpc only affects data from a form and not stuff you've grabbed from the database.