Hi,
I have configured the editor to insert data into the DB, but how do you return the DB data back into the editor so I can update the existing data?
// SELECT TABLE AND SET VARIABLE WITH DB DATA
$SQL = "SELECT *
FROM postess_selfDescription
WHERE userID = ".$_SESSION['sesUserID']."";
$result = $conn->Execute($SQL);
db_check_result($result);
$selfIntro = $result->fields["selfIntro"];
// END OF SELECT TABLE AND SET VARIABLE WITH DB DATA
This is what I tried so far:
I tried putting the $selfIntro variable inside the editor value field.
$oFCKeditor->Value = ' $selfIntro ' ;
That didn't work.
I tried
$oFCKeditor->Value = ' echo "$selfIntro"; ' ;
That didn't work.
Please Post any solutions.
Thanks in advance.
I have configured the editor to insert data into the DB, but how do you return the DB data back into the editor so I can update the existing data?
// SELECT TABLE AND SET VARIABLE WITH DB DATA
$SQL = "SELECT *
FROM postess_selfDescription
WHERE userID = ".$_SESSION['sesUserID']."";
$result = $conn->Execute($SQL);
db_check_result($result);
$selfIntro = $result->fields["selfIntro"];
// END OF SELECT TABLE AND SET VARIABLE WITH DB DATA
This is what I tried so far:
I tried putting the $selfIntro variable inside the editor value field.
$oFCKeditor->Value = ' $selfIntro ' ;
That didn't work.
I tried
$oFCKeditor->Value = ' echo "$selfIntro"; ' ;
That didn't work.
Please Post any solutions.
Thanks in advance.

Re: Need HELP with fckeditor for PHP.
echo is not a function and it doesn't return anything, it simply displays one or more strings, so it can't work.
Here you are using single quotes:
so PHP will not translate $selfIntro into its value, you have to use double quotes here, or better, no quotes at all:
If your problem isn't solved yet, add var_dump($selfIntro) before assigning value to FCKeditor:
and check whether $selfIntro actually contains anything.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Need HELP with fckeditor for PHP.
Re: Need HELP with fckeditor for PHP.
http://www.postess.com/myprofile.php?us ... _Xeng_Vang
http://www.postess.com/%22http://www.po ... _Xeng_Vang