For a side project I’m working on, users can comment/share their opinions on certain subjects and etc. While inserting works fine, how do I make it so that user’s can post comments such as
“This is a test comment. I’m. You’re. They’re”
without the prepared statement inserting this instead:
“This is a test comment. I\’m. You\’re. They\’re”
Is there any way to insert comments and etc. like such with prepared statements without the slashes?
I thought i had heard the last of Magic Quotes
You need to disable them
http://php.net/manual/en/security.magicquotes.php