I’m working on a PHP comment system and came across the problem that the commentator’s quotation marks are delimited when written to the comment file, so the output would end up like this for example:
“That is your father\’s! It\’s special to him!” (random sentence). How do I disable this?
I’m working on a PHP comment system and came across the problem that the
Share
The backslashes are added to the database query to prevent SQL injection. You can use the
stripslashes()function to remove them when you retrieve the comments from the database.You should also take a look at magic quotes.