Hi,
Im a newbie to FCKEditor, ive managed to install it and get it to work to some extent....
what i want to do and cant seem to get it to do is display data from a MySQL DB inside the editor....
for example, i want to be able to do this.
instead of having this:
<?php $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = '/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() ; ?>
i want it to have this:
<?php $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = '/fckeditor/' ; $oFCKeditor->Value = '<?php echo $row_pgcontent ['textbox1']; ?>' ; $oFCKeditor->Create() ; ?>
But when i load the page it doesnt pull the data out of the database, it just throws an error saying:
Parse error: syntax error, unexpected T_STRING in /home/xxxxx/xxxxx/xxx.xxxx.com/cms/edit-pages.php on line 157
on line 157 ive got the following:
$oFCKeditor->Value = '<?php echo $row_pgcontent ['textbox1'] ; ?>' ;
Could someone please give me a hand, i honestly cannot work this one out, am i trying to do something that cant be done with FCKEditor?
how do i draw data out of the database and display it inside a FCKEditor window for people to edit???
Thanks In Advance
Re: Dynamic Content, Please Help.
Re: Dynamic Content, Please Help.
alfonsoml - you didnt answer any of my questions.
Can what i want to do be done and how?
What am i doing wrong.
Re: Dynamic Content, Please Help.
You need to learn basic PHP programming if you need to ask that kind of questions,
echo (http://php.net/echo) does output the data to the client, and so it doesn't send the data to the editor.
Re: Dynamic Content, Please Help.
YOU DONT ANSWER MY QUESTION,
rather than just leaving smart remarks actually be helpful.
Re: Dynamic Content, Please Help.