Hey Guys,
Im trying to set the value of FCKeditor to the result of a database query ...or basically a variable:
latestNews is a fucntion from earler in my code. What basically happens is that the returned value from the database query gets displayed above and outside of the editor.
Can anyone suggest a better method?
Im trying to set the value of FCKeditor to the result of a database query ...or basically a variable:
<?php $content = latestNews(false,true); $content = stripslashes($content); $oFCKeditor = new FCKeditor('FCKeditor') ; $oFCKeditor->BasePath = 'FCKeditor/'; $oFCKeditor->Value = latestNews(false,true); $oFCKeditor->Create() ; ?>
latestNews is a fucntion from earler in my code. What basically happens is that the returned value from the database query gets displayed above and outside of the editor.
Can anyone suggest a better method?