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

在php中将数据插入数据库

Helo dear friends. Please i have a probleme while inserting data whic contains cotes (",') into my database. Insertion ends when the first " is found my string.

My query is

"INSERT INTO table(Id,message,Date) VALUES(1,"here is come text",?) "

be sure to use single quotes

"INSERT INTO table (Id, message, Date) VALUES (1, 'here is come text', ?)"

近期文章

  • Mysql vs Mysqli与货币符号
  • htaccess从重写中排除文件夹?
  • psr-4 autoload - 无法重新声明课程
  • 成功提交联系表格
  • 在php脚本中执行unoconv命令
  • PHP表单提交后的空白
  • 具有搜索功能的下拉列表
  • 为什么我无法在Mixpanel中创建别名?
  • 如何在php中显示唯一的数组值
  • 如何在PHP中读取控制台/用户输入?
  • 在PHP中使用类外的变量
  • 无法从PHP中获取所选选项
  • 取消链接文件并立即从2中删除
  • 如何将项目导入cakephp?
  • 为什么AJAX会返回重复数据?
  • 用户输入未显示在搜索表单中
  • 从as3crypto解密php中的AES-CBC
  • Laravel paginate()不限制结果。
  • 将参数传递给Navigation Factory
  • 使用Php从服务器上传图像

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华