duanjian5059 2018-06-29 02:55
浏览 21

无法将数据库资源放入mysqli查询[重复]

This question already has an answer here:

I have been searching this whole question in this site but got no real problem that the same as mine.

My code gives this error :

Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given

Which I understand what it means, but each time I put the other parameters (database) it keeps gave me another kind of error.

My code

</div>
  • 写回答

1条回答 默认 最新

  • douliang7068 2018-06-29 03:57
    关注

    It required a database resource as the first parameter. For further reference please see link below https://www.sitepoint.com/community/t/mysqli-real-escape-string-expects-exactly-2-parameters-in-mysqli/210830/2

    评论

报告相同问题?

悬赏问题

  • ¥15 python变量和列表之间的相互影响
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)