So i am simply trying to insert a text field, which can be edited by the FCK editor, into a mysql database.
here is my code.
//fck form... $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = '/MassMailer/fckeditor/' ; $oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; $oFCKeditor->Create() ; //mysql statement $content = stripslashes( $_POST['FCKeditor1'] ) ; $sql = "INSERT INTO mail (msg) VALUES ($content)"; mysql_query($sql) or die(mysql_error());
Re: FCK editor and mysql