I have some PHP code which stores whatever is typed in a textbox in the databse. If I type in bob's apples, it gets stored in the database as bob's apples.
What can be the problem?
The table storing this has the collation of latin1_swedish_ci.
Looks like your
PHPcode is converting special char toHTMLentities using htmlentities. You can make use of the function html_entity_decode to get back the original string.