我想更改内容 把数据库中的值放到fck中编辑 怎么弄? 希望详细的代码
public function news_edit(){
$news=new NewsModel();
$data["news_id"]=$_REQUEST["news_id"];
$newslist=$news->where($data)->find();
$this->assign("newslist",$newslist);
vendor("fckeditor.fckeditor");
$editor=new FCKeditor('EditorDefault');
$editor->width='980';
$editor->height='400';
//$result=mysql_query("select news_content from lmjdb where news_id=$data");
//while($arr=mysql_fetch_array($resule))
//{
// $description=$arr["result"];
//}
$editor->value='&request("111")&';
//print_r($description);
//$editor->InstanceName='form1';
$html=$editor->Createhtml();
$this->assign("html",$html);
$this->display();}
这个是我的代码 请问在哪添加代码可以使fck中有要提取的值?
public function news_edit(){
$news=new NewsModel();
$data["news_id"]=$_REQUEST["news_id"];
$newslist=$news->where($data)->find();
$this->assign("newslist",$newslist);
vendor("fckeditor.fckeditor");
$editor=new FCKeditor('EditorDefault');
$editor->width='980';
$editor->height='400';
//$result=mysql_query("select news_content from lmjdb where news_id=$data");
//while($arr=mysql_fetch_array($resule))
//{
// $description=$arr["result"];
//}
$editor->value='&request("111")&';
//print_r($description);
//$editor->InstanceName='form1';
$html=$editor->Createhtml();
$this->assign("html",$html);
$this->display();}
这个是我的代码 请问在哪添加代码可以使fck中有要提取的值?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货