<?php
$edi = $_GET["edi"];
include '../library/config.php';
include '../library/opendb.php';
$result = mysql_query("SELECT * FROM tbannouncements WHERE id LIKE '$edi'");
while($r=mysql_fetch_array($result))
{
$sn=$r["sn"];
$name=$r["name"];
$title=$r["title"];
$description=$r["description"];
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = 'http://www.google.ca/fckeditor/' ;
$oFCKeditor->Value = '<?php echo"$description"; ?>' ;
$oFCKeditor->Create() ;
}
include '../library/closedb.php';
?>
Wed, 11/18/2009 - 18:51
#1

Re: CKeditor Value as php $variable.
<?php include '../library/config.php'; include '../library/opendb.php'; $result = mysql_query("SELECT * FROM tbannouncements WHERE sn LIKE '$edi'"); while($r=mysql_fetch_array($result)) { $sn=$r["sn"]; $name=$r["name"]; $title=$r["title"]; $description=$r["description"]; $pstdate=$r["pstdate"]; $greg=JDToGregorian($pstdate); ?> <?php $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = 'http://www.google.ca/announcements/fckeditor/' ; $oFCKeditor->Value = "$name" ; $oFCKeditor->Create() ; ?> <?php } include '../library/closedb.php'; ?>