此表正在取得庫MySQLi表中沒有被提出,但另一些
$tbl_entertour = "CREATE TABLE IF NOT EXISTS entertour (
team_id VARCHAR (16) NOT NULL,
tournament_id VARCHAR (16) NOT NULL,
provname_id VARCHAR (16) NOT NULL,
username VARCHAR (16) NOT NULL,
p_1_id VARCHAR (16) NOT NULL,
p_2_id VARCHAR (16) NOT NULL,
p_3_id VARCHAR (16) NOT NULL,
p_4_id VARCHAR (16) NOT NULL,
p_5_id VARCHAR (16) NOT NULL,
p_6_id VARCHAR (16) NOT NULL,
ip VARCHAR (255) NOT NULL,
entered DATETIME NOT NULL,
UNIQUE KEY username (username)
)";
$query = mysqli_query($db_conx, $tbl_entertour);
if ($query === TRUE) {
echo "<h3>entertour table created OK :) </h3>";
} else {
echo "<h3>entertour table NOT created :(</h3>";
}
此表沒有被製成
$tbl_provtour = "CREATE TABLE IF NOT EXISTS provtour (
id INT (11) NOT NULL AUTO_INCREMENT,
user_id VARCHAR (16) NOT NULL,
provname_id (16) NOT NULL,
tourname VARCHAR (25) NOT NULL,
team_total ENUM('0','999999') NOT NULL DEFAULT '0',
entered_teaams ENUM('0','999999') NOT NULL DEFAULT '0',
game VARCHAR (25) NOT NULL,
c_1 VARCHAR (25) NOT NULL,
c_2 VARCHAR (25) NOT NULL,
c_3 VARCHAR (25) NOT NULL,
c_open ('0','1') NOT NULL DEFAULT '0',
joinopen ('0','1') NOT NULL DEFAULT '0',
ip VARCHAR (255) NOT NULL,
reg_start DATETIME NOT NULL,
reg_end DATETIME NOT NULL,
created DATETIME NOT NULL,
lastupdated DATETIME NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY username (user_id)
)";
$query = mysqli_query($db_conx, $tbl_provtour);
if ($query === TRUE) {
echo "<h3>provtour table created OK :) </h3>";
} else {
echo "<h3>provtour table NOT created :(</h3>";
}
OK,我想在我的數據庫中創建第二個表,並只是似乎沒有得到,並回來與第二回聲。最上面的桌子被製作出來,與其他所有的桌子相同,但由於某種原因,這張底部桌子沒有。
我不知道爲什麼。我一直在看它約10分鐘,我似乎不能找到錯誤。
感謝
爲什麼不嘗試回顯錯誤和錯誤代碼。這可能會給你有用的見解。 –