![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
l_fireworks
一个喜欢音乐的程序猿
展开
-
php调取数据库报错Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in
在php文件中写入这样几行代码,就可以了$result = mysqli_query($conn,$sql);//至少两个参数,我之前写了一个参数也报错if (!$result) { printf("Error: %s\n", mysqli_error($conn)); exit();}翻译 2020-05-14 08:23:26 · 7145 阅读 · 0 评论 -
php提交表单显示Incorrect integer value: '' for column 'id' at row 1解决方法
搞了大半天,终于解决了。未解决问题前代码:$sqlString="insert into message(id,user,title,content,lastdate)values('','$user','$title','$content',now())";后来,我把id插入对应的values值’ '改为null就好啦。$sqlString="insert into message(id,user,title,content,lastdate)values(null,'$user','$ti翻译 2020-05-13 23:22:50 · 710 阅读 · 0 评论 -
phpmyadmin的id自增怎么操作
phpmyadmin设置id自增(AUTO_INCREMENT)自增(AUTO_INCREMENT),简写A_I原创 2020-05-02 14:09:43 · 1578 阅读 · 0 评论 -
php出现Field 'id' doesn't have a default value
1.Field ‘id’ doesn’t have a default value如果你在做web项目的时候,出现 Field ‘id’ doesn’t have a default value 这个错误,那就什么都别管,直接找到你的数据库,找到相应的数据表,看id的自增递增是否勾选上了,如果没有勾上那就勾上,保存再次运行就好了。...翻译 2020-05-02 14:04:02 · 762 阅读 · 0 评论 -
Apache+php+mysql网站开发环境搭建全过程记录
一、Apache下载这个版本httpd-2.4.43-o111f-x64-vc15二、php三、Mysql原创 2020-06-02 18:37:45 · 611 阅读 · 0 评论