Hi all,
I currently have a setup where I drag the content to the textarea like so:
I need to do this because this is an edit page, so there is already content for the section in question. However because I needed to allow for formatting I added the FCKeditor & tried to echo the content into that like so:
However this gives me an error of:
Parse error: syntax error, unexpected T_ECHO in /home/educat/public_html/Education World Site/CMS/editcontent.php on line 156
Is this just a problem with my PHP (likely) or does the FCKeditor not allow content to be 'dragged in' this to it (unlikely)?
thanks
I currently have a setup where I drag the content to the textarea like so:
<textarea name="content" cols="50" rows="10" class="bodyinput" id="content"/><?php echo $row['content']?> </textarea> <input name="submit" type="submit" class="bodyinput" id="submit" value="Edit Content" />
I need to do this because this is an edit page, so there is already content for the section in question. However because I needed to allow for formatting I added the FCKeditor & tried to echo the content into that like so:
<?php $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = '/fckeditor/' ; $oFCKeditor->Value = echo $row['content'] ; $oFCKeditor->Create() ; ?>
However this gives me an error of:
Parse error: syntax error, unexpected T_ECHO in /home/educat/public_html/Education World Site/CMS/editcontent.php on line 156
Is this just a problem with my PHP (likely) or does the FCKeditor not allow content to be 'dragged in' this to it (unlikely)?
thanks