I have textarea and i store it in mysql.   

some special below when i up to mysql and load it to my area working well

```
!@#$%^&*()_+-=~<>?{}[]|*-+/:;.,"`

```

(enter) character done with upload to mysql but not to reload. I try to reload with

```
str_replace("\n", "\\n",$string);

```

and it working well

**When i up to mysql some special below characters not working**   

```
\'

```

**I try typing double character above it work for upload to mysql but not to reload**

```
typing '' to mysql ' but i want typing ' to mysql '

```

How can i work with some error charactor above (up and reload) with best way. thanks

**Update my way**   

When i up to mysql i using

```
addslashes($string)

```

and when i reload i using

```
 str_replace("\n", "\\n",addslashes($string))

```

It's done with my case thanks all