以前用textarea  向数据库中插入数据 ,前两天改成fckeditor  ,再添加数据,前台就不显示,数据库中能得到数据,我发现 title可以显示(title没有使用 fckedior),但是内容(content)不显示  内容前面加了一个unserialize   不知道是不是fckedior 发送的数据是不是不符合 unserialize的格式       
请大家指点下 ,,,,谢谢!!

解决方案 »

  1.   

    你只是取fck中的内容 用unserialize干吗?
      

  2.   

    我也不知道啊 原来程序上 有unserialize  如果把unserialize去掉 那么从数据库中得到的数据 都会加一些乱码标志
      

  3.   

    囧那是我理解错 没看清楚 
    你的fck是不是用ifrmae引入的?
      

  4.   

    嗯  是嵌套在ifrmae中的  是通过js调用的 textarea的name
      

  5.   

    <INPUT id=content style="DISPLAY: none" type="hidden" name="welefen">  
    <INPUT id=content___Config style="DISPLAY: none" type=hidden>  
    <IFRAME id=content___Frame  
      src="../../fckeditor/editor/fckeditor.html?InstanceName=welefen&Toolbar=My" frameBorder=0 width=100% scrolling=no height="260" >  
     </IFRAME> 大概是这样把值赋在 <INPUT id=content style="DISPLAY: none" type="hidden" name="welefen" value="这里" >  
      

  6.   

    我现在的问题是 数据库的数据怎么用了 unserialize后 在前台不显示  你说的上面的代码我看不懂啊
      

  7.   

    贴下你前台引用 fck的代码
      

  8.   


     <script type="text/javascript">
        window.onload = function()
        {
        var oFCKeditor = new FCKeditor( 'content' ) ;
        
        oFCKeditor.Height = 600;
        oFCKeditor.Width = 800;
        oFCKeditor.BasePath = './js/fckeditor/';    oFCKeditor.ReplaceTextarea() ;
        }
    </script>
    <textarea id="content" name="news[content]" style="width:719px; height:460px; border:#CCCCCC solid 1px></textarea>
      

  9.   

    oFCKeditor.EditorDocument.body.innerHTML ="你想给他的值"试下
      

  10.   

    在FCKeditor编辑器里什么也不显示 什么也不显示