probs mit icon mod nach update auf 2.06
Verfasst: 06.08.2003 20:13
ich hab da ein paar probs mit der funktions_post.php
in der alten datei (2.05) sollte
mit
erstetzt werden, dieser ist nun in der form nicht mehr da
hab ich mich mal drangesetzt, mit meinen kenntnissen, sind nicht viel
und wollte die zeile
funzt dann aber nicht
kann mir jemand helfen ???
bekomm jetzt ne schöne fehlermeldung
Error in posting
DEBUG MODE
SQL Error : 1136 Spaltenzahl stimmt nicht mit der Anzahl der Werte überein in Reihe1
INSERT INTO phpbb_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('test', 2, 1060193569, 1, 0, 0, 0, topic_icon)
Line : 261
File : c:\programme\wamp\homepages\includes\functions_post.php
in der alten datei (2.05) sollte
Code: Alles auswählen
$sql = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_vote = $topic_vote WHERE topic_id = $topic_id";
Code: Alles auswählen
$sql = ( $mode != "editpost" ) ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_icon) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote, $msg_icon)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_vote = $topic_vote, topic_icon = $msg_icon WHERE topic_id = $topic_id";

hab ich mich mal drangesetzt, mit meinen kenntnissen, sind nicht viel

und wollte die zeile
Code: Alles auswählen
$sql = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote, topic_icon)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id";

kann mir jemand helfen ???
bekomm jetzt ne schöne fehlermeldung
Error in posting
DEBUG MODE
SQL Error : 1136 Spaltenzahl stimmt nicht mit der Anzahl der Werte überein in Reihe1
INSERT INTO phpbb_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('test', 2, 1060193569, 1, 0, 0, 0, topic_icon)
Line : 261
File : c:\programme\wamp\homepages\includes\functions_post.php