Welcome to WebmasterWorld Guest from 22.214.171.124
How do I get rid of the slashes around quotes(/""/) before it gets inserted into my database?
$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".
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.
At a guess, I'd say have a go using mysql_escape_string() and see if that better prepares the string for use in your SQL statment.