Forum Moderators: coopster
How do I get rid of the slashes around quotes(/""/) before it gets inserted into my database?
SQL statement:
$sql = "INSERT INTO data (comments) VALUES ('$comments')";
How do I prevent the slashes with quotes from being inserted into the database when the comments are submitted?
i.e. this is an example /"quote"/. Should read: this is an example "quote".
~Shane
p.s. Normally its never a problem but occassionally I get some strange comment submitted that is full of slashes around quotes. Maybe someone copied the information and pasted it into the form... i don't know.