我正在嘗試創建一個基本的 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 關注
- 102 瀏覽
添加回答
舉報
0/150
提交
取消