Verfasst: 30.06.2005 11:50
Kann mir keiner helfen???
Der String ist nicht abgeschlossen (mit ").sascha0810 hat geschrieben:in der Zeile steht folgendes
Code: Alles auswählen
WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]);
Code: Alles auswählen
WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]) ";sascha0810 hat geschrieben:Hilfe
sascha0810 hat geschrieben:der Fehler besteht immer noch!
sind sind a) Spam und b) helfen niemanden c) müllen die Datenbank vollsascha0810 hat geschrieben:Kann mir keiner helfen???
Code: Alles auswählen
$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable, no_admin_enable" . $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['no_admin_enable']) . $value_sql . ")";Code: Alles auswählen
$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable, auth_no_admin" . $field_sql . ")_admin_enable" . $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['no_admin_enable']) . $value_sql . ")";Code: Alles auswählen
$sql = "UPDATE " . FORUMS_TABLE . "
SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']). ", auth_no_admin = " . intval($HTTP_POST_VARS['no_admin_enable']) . " . "
WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL])" ;
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't update forum information", "", __LINE__, __FILE__, $sql);
}Code: Alles auswählen
$sql = "UPDATE " . FORUMS_TABLE . "
SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']). ", auth_no_admin = " . intval($HTTP_POST_VARS['no_admin_enable']) . "
. "
WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]);
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't update forum information", "", __LINE__, __FILE__, $sql);
}