In PHP when trying to integrate the editor I am having an issue. What i need to do is pull some text from the database (using a custom function) and display it. Here is the code:
It will not display the text from the db in the text field, but it will just above it on the page. WHen I test it with plain text (the one commented out) it works fine. Any ideas on how to resolve it?
THanks, Nick.
<?php
$bodytext=lookupConfig($_GET[name2]);
// $bodytext="TEst";
$oFCKeditor = new FCKeditor('bod2y') ;
$oFCKeditor->BasePath = '../FCKEditor/';
$oFCKeditor->Value = $bodytext;
$oFCKeditor->Create() ;
?>
It will not display the text from the db in the text field, but it will just above it on the page. WHen I test it with plain text (the one commented out) it works fine. Any ideas on how to resolve it?
THanks, Nick.