I think I'm a bit confused...
I have a form where anybody can post anything so I probably should use addslashes, but I can't get my sql query to fail no matter how hard I try without addslashes added.
My code looks like this:
$insert = htmlspecialchars($_POST["data"]);
mysql_query("INSERT INTO table (comment) VALUES ('$insert')", $connection);