我正在尝试创建一个基本的 php 注册表单,但我无法弄清楚为什么它不起作用。它一直向我显示sql 的 if 语句的错误“error=sqlerror3” ,它只是不在表中插入值。这是我的表(idTmp 有 auto_increment):CREATE TABLE `users_tmp` ( `idTmp` int NOT NULL, `ipUser` varbinary(17) NOT NULL, `cellUser` int NOT NULL, `placeUser` longtext NOT NULL, `uidUsers` longtext NOT NULL, `emailUsers` longtext NOT NULL, `pwdUsers` longtext NOT NULL, `dataUser` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `stateUser` longtext NOT NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1;数据库连接dbh.inc.php:<?php$servername = "localhost";$username = "root";$password = "123Ciuronay";$dbname = "icproducoes_users";$conn = mysqli_connect($servername, $username, $password, $dbname);if (!$conn){ die("Connection failed: " .mysqli_connect_error());}
1 回答

慕田峪9158850
TA贡献1794条经验 获得超8个赞
在您的 INSERT 查询中,您试图修改advertising
CREATE TABLE 查询中不存在的列。结果,mysqli_stmt_prepare
看到您正在尝试写入不存在的列并返回错误。
- 1 回答
- 0 关注
- 103 浏览
添加回答
举报
0/150
提交
取消