データベースに入れるデータは、
http://jp.php.net/manual/ja/function.mysql-real-escape-string.php の「例3」にある
やり方で一応大丈夫?

addslashes()はしたほうがいいのかなぁ?