用了unserialize后 数据库的内容不能在前台显示了 以前用textarea 向数据库中插入数据 ,前两天改成fckeditor ,再添加数据,前台就不显示,数据库中能得到数据,我发现 title可以显示(title没有使用 fckedior),但是内容(content)不显示 内容前面加了一个unserialize 不知道是不是fckedior 发送的数据是不是不符合 unserialize的格式 请大家指点下 ,,,,谢谢!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你只是取fck中的内容 用unserialize干吗? 我也不知道啊 原来程序上 有unserialize 如果把unserialize去掉 那么从数据库中得到的数据 都会加一些乱码标志 囧那是我理解错 没看清楚 你的fck是不是用ifrmae引入的? 嗯 是嵌套在ifrmae中的 是通过js调用的 textarea的name <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="这里" > 我现在的问题是 数据库的数据怎么用了 unserialize后 在前台不显示 你说的上面的代码我看不懂啊 贴下你前台引用 fck的代码 <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> oFCKeditor.EditorDocument.body.innerHTML ="你想给他的值"试下 在FCKeditor编辑器里什么也不显示 什么也不显示 关于内存问题,急 如何判断一个cookie是已经过期了还是还没有创建 求php网站环境一键安装 PHP 求一优化算法(代码精简)wordpress相关 如何根据用户名调用新浪微博列表 请问paypal如何与开发者分账? php 实现简单文字发音 急!!!!!在线等,关于HDwiki中LDAP设置的问题!!!!!!!! 杭州寻找php程序员共同开发OA项目 新人求助,.chm文件打不开,双击就弹出一个乱码窗口,求解决方案 遇到一个问题,大家帮忙解决一下 jquery+php:发布一小小的网站安全策略,望高手捧场
你的fck是不是用ifrmae引入的?
<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="这里" >
<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>