I'm trying to open a record from MySQL so that a field can be edited with FCKEditor. I've searched all over this site and the forums and have found dozens of suggestions -- none of which I can get to work.
Here's what I'm currently using:
<?php
$body1=stripslashes($myrow["body"]);
$ofckeditor = new fckeditor('fckeditor1') ;
$ofckeditor->BasePath = 'fckeditor/' ;
$oFCKeditor->Value = '$body1';
$ofckeditor->Create() ;
?>
Where "body" is the field in MySQL.
The page works but the text in the body field does not display in the FCKEditor. I can display the same text in a regular text box on the same page, so I know the text is there.
Any help will be appreciated.
Here's what I'm currently using:
<?php
$body1=stripslashes($myrow["body"]);
$ofckeditor = new fckeditor('fckeditor1') ;
$ofckeditor->BasePath = 'fckeditor/' ;
$oFCKeditor->Value = '$body1';
$ofckeditor->Create() ;
?>
Where "body" is the field in MySQL.
The page works but the text in the body field does not display in the FCKEditor. I can display the same text in a regular text box on the same page, so I know the text is there.
Any help will be appreciated.
Re: Editing a MySQL record with FCKEditor
regards
paul.mac
Re: Editing a MySQL record with FCKEditor
Re: Editing a MySQL record with FCKEditor
$ofckeditor
to
$oFCKeditor in 3 locations (and omitting the quotes)
paul.mac
Re: Editing a MySQL record with FCKEditor
I'm not surprised it was something simple -- but I had looked at it too long to see it.