您的SQL语法有错误; 检查与MySQL服务器版本对应的手册,以便在"组,名称,域,状态"附近使用正确的语法VALUES('19','Minecraft','Bukkit','Bukkit Basic''在第1行
mysql_query("INSERT INTO products (id, server, group, name, domain, status)
VALUES ('".$productid."', '".$productserver."', '".$productgroup."',
'".$productname."', '".$productdomain."', '".$productstatus."')")
OR die(mysql_error());
Run Code Online (Sandbox Code Playgroud)
我已经重写了5次代码.
group是MySQL中的保留字.你必须用反引号来逃避它:
INSERT INTO products (id, server, `group`, name, domain, status) VALUES ...
Run Code Online (Sandbox Code Playgroud)