admin_forums.php
Код: Выделить всё
// There is no problem having duplicate forum names so we won't check for it.
$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable, points_disabled, forum_postcount" . $field_sql . ")
VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . ", " . intval($HTTP_POST_VARS['points_disabled']) . ", forum_postcount = " . intval($HTTP_POST_VARS['forum_postcount']) . ", " . intval($HTTP_POST_VARS['forum_postcount']). $value_sql . ")";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't insert row in forums table", "", __LINE__, __FILE__, $sql);
}
окно ошибки:
Код: Выделить всё
Couldn't update forum information
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' points_disabled = 0 WHERE forum_id = 12' at line 2
UPDATE forum_db_forums SET forum_name = 'Uudised', cat_id = 3, forum_desc = 'Uudised Counter-Strike maailmast', forum_status = 0, , points_disabled = 0 WHERE forum_id = 12
Line : 453
File : admin_forums.php