获得500查询

时间:2018-02-01 22:58:41

标签: php mysql

$result = $db->execute("
INSERT INTO arrowchat_chatroom_rooms (author_id, name, description, welcome_message, image, type,password, length, max_users, session_time, limit_message_num, limit_seconds_num) 
VALUES ('" . $db->escape_string($userid) . "', 
'" . $_POST["add_chatroom_name"] . "',
'" . $_POST["add_chatroom_desc"] . "', 
'" . $_POST["add_chatroom_welcome_msg" . "', 
'" . $db->escape_string($icon_filename) ."', 
'". $_POST["add_chatroom_type"] . "', 
'" . $_POST["add_chatroom_password"] . "', 
'" . $_POST["add_chatroom_length"] . "', 
'" . $_POST["chatroom_max_users"] . "', 
'" . time() . "', 
'" . $_POST["limit_message_num"] . "', 
'" . *_POST["limit_seconds_num"] . "')"
);

返回http 500 x_x

1 个答案:

答案 0 :(得分:0)

您错过了

的结束]
$_POST["add_chatroom_welcome_msg"

开头的

和*

*_POST["limit_seconds_num"]

在您的查询中,这是导致500错误的最可能原因尝试从display_errors = On启用php.ini