Siemka
Przy próbie edycji for przez panel administracyjny wywala mi taki błąd:
Kod:
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 '', enable_minuspoints = '1, prune_enable = 0, raport_on = 1, forum_postcount = 1' at line 2
UPDATE phpbb_forums SET forum_name = 'Poszukiwania/Requests', forum_color = '', cat_id = 3, forum_desc = 'Szukasz filmu ? Pisz tutaj...', forum_tags_list = 'RMVB,X264,XVID,DVD-R,SVCD,INNY,', forum_require_tag = '1', forum_status = 0, enable_pluspoints = 1', enable_minuspoints = '1, prune_enable = 0, raport_on = 1, forum_postcount = 1 WHERE forum_id = 13
Line : 482
File : admin_forums.php
Wiem że jest to związane z zapytaniem do bazy ale zupełnie nie wiem co może byc źle

To moje dwa kody sql z admin_forums.php
Kod:
// There is no problem having duplicate forum names so we won't check for it.
$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, forum_color, cat_id, forum_desc, forum_tags_list, forum_require_tag, forum_order, forum_status, enable_pluspoints, enable_minuspoints, prune_enable, forum_postcount" . $field_sql . ")
VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forum_color']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', '" . htmlspecialchars(trim($HTTP_POST_VARS['forum_tags_list'])) . "', '" . intval($HTTP_POST_VARS['forum_require_tag']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($_POST['enable_plus']) . ", " . intval($_POST['enable_minus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . ", " . intval($HTTP_POST_VARS['forum_postcount']) . $value_sql . ")";
Kod:
$sql = "UPDATE " . FORUMS_TABLE . "
SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', forum_color = '" . str_replace("\'", "''", $HTTP_POST_VARS['forum_color']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_tags_list = '" . htmlspecialchars(trim($HTTP_POST_VARS['forum_tags_list'])) ."', forum_require_tag = '" . intval($HTTP_POST_VARS['forum_require_tag']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", enable_pluspoints = ". intval($_POST['enable_plus']) . "', enable_minuspoints = '" . intval($_POST['enable_minus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . ", raport_on = " . $raport_on . ", forum_postcount = " . intval($HTTP_POST_VARS['forum_postcount']) . "
WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]);