PHP and special characters
Hi,
I am having trouble with an HTML simple text input form that where the user may enter special characters such as single quote or double quote etc.
form text example: I'm Feeling good.
When processing the form - php - post to mysql DB shows the error :
Syntax error or access violation: 1064 You have an error in your SQL syntax...
the value it got was like:
'I'm Feeling good',
- which has 3 single quotes - causing the error...
Q: Is there a way to properly escape whatever the special characters are that might be type to fix this issue for php?
Thanks
Dave
