[Solved] PHP how to include everything i type in my textbox to mysql database [duplicate]


No, You dont use str_replace(), you have addslashes() and stripslashes(), those two are the two functions you are looking for.

Changing a string with str_replace functions isnt a smart thing to do. Those functions aren’t created with this in mind, the add/striposlashes are. You might forget a character which you needed to str_replace with a slash.

Also, that whole battery of slashes and escaping slashes doesnt make your code very readable 😛

solved PHP how to include everything i type in my textbox to mysql database [duplicate]