Simple PHP help please?

DF89

New member
I have a text field on my website that saves visitor's input in the database.
If someone writes something like "it's rainy" in the field, an error occurs because the ' character is messing up the input.

Could you please let me know how this problem can be solved without asking the user to avoid this character?
 
Back
Top