include_once("php/db_connects.php");
$tbl_status = "CREATE TABLE IF NOT EXISTS status (
id INT(11) NOT NULL AUTO_INCREMENT,
osid INT(11) NOT NULL,
account_name VARCHAR(16) NOT NULL,
author VARCHAR(16) NOT NULL,
type ENUM('a','b','c') NOT NULL,
data TEXT NOT NULL,
postdate DATETIME NOT NULL,
PRIMARY KEY (id)
)";
$query = mysqli_query($tbl_status, $db_connects);
if ($query === TRUE) {
echo "<h3>status table created </h3>";
} else {
echo "<h3>status table NOT created </h3>";
}
我不断收到mysqli错误。我很确定我没有在我的 php 中使用 msql。