Hi
I need to put data from MySQL into FCKeditor.
At the first time the data was posted using FCKeditor and includeed into MySQL TABLE.
How can I to recuperate data from database and set into FCK value?
In my example:
$data = my MySQL data
Could I set the FCK value like this example?
Best regards
Marcos MM
I need to put data from MySQL into FCKeditor.
At the first time the data was posted using FCKeditor and includeed into MySQL TABLE.
How can I to recuperate data from database and set into FCK value?
In my example:
$data = my MySQL data
<?php $oFCKeditor = new FCKeditor ; $oFCKeditor->BasePath = '/FCKeditor/' ; $oFCKeditor->Value = 'echo $data' ; // ??? $EditorDefault['value']; $oFCKeditor->CreateFCKeditor( 'EditorDefault', '100%', 250 ) ; ?>
Could I set the FCK value like this example?
Best regards
Marcos MM
RE: [PHP]Value from mysql, how to do?
I have found that you do not need to add the "echo" statement in the Value line. Also, depending on how the data are being sent to the database, you might want to add the "stripslashes" call.
Example:
$data = MySQL data;
RE: [PHP]Value from mysql, how to do?
It's working now!
best regards
Marcos MM