摘要: 当预处理的SQL语句是用问号占位符时,如果是用数组传参的,数组里不要带有键值,否则无法执行SQL。 出错的代码如下: $test = new PDODB(); $param=["d"=>"2020-1-13","e"=>2,"f"=>2,"g"=>2]; $sql1 = "insert into h 阅读全文
posted @ 2020-01-14 15:32 白小白学IT 阅读(367) 评论(0) 推荐(0)