我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

将CKEditor HTML插入数据库

Upload Error: 

UPDATE pages set page_title = 'Test Update', page_description = 'Test Update', page_content = '
This is content! Update!


' WHERE id = 

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

How can I get over this error when I submit the form to update the record?

You will have to encode the data in some way. And decode it when retrieving.

近期文章

  • 数组和元素的值相同?
  • 脚本计数加2而不是1
  • 实施SAML 2.0 SSO不同的Idps
  • 一个简单的请求Ajax jquery symfony 2
  • ajax请求强制浏览器重新加载
  • 在空白文本字段中显示消息错误
  • Wordpress插件 - 只删除我点击的行?
  • 如何在php中使用反射作为回调
  • phplist测试电子邮件失败不一致
  • PHP替代python加密代码
  • array_slice()用于大型数组,无论好坏
  • 关于Udemy课程 - 使用OOP连接数据库
  • 为什么mt_rand重复生成相同的数字?
  • PHP PDO - 在mysql中更新仅发布值(html表单)
  • 我将iframe加载到另一个页面时,iframe无法正常工作
  • 如何在Magento中将特定属性的字符串数据类型更改为Integer
  • PHP Facebook - 在发布时以编程方式覆盖应用程序名称
  • 否JsonResponse即使单个数据为空也获得
  • 如何为单个用户设置文件管理器存储访问权限
  • 表单提交后将数据从控制器传递到模板的最佳方法

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华