Genau weiß ichs nicht mehr, aber irgendwie sowas von wegen die Spaltenanzahl stimmt nicht da zuviel bzw zuwenig Werte übergeben werden.
Nun ich dachte, na das bekommst schon hin.
Doch desto mehr ich mir sicher bin "JEtzt gehts aber" desto tiefer kehre ich ein in die Welt der Fehlermeldungen.
Vielleicht könnte mir jemand helfen, bevor ich noch weitere mir unbekannte Fehlermeldungen bekomme.
Also der Teil aus der functions_post.php der wahrscheinlich fehlerhaft ist
Code: Alles auswählen
if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post']))
{
$topic_vote = (!empty($poll_title) && count($poll_options) >= 2) ? 1 : 0;
$sql = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, news_id, topic_type, topic_vote) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, $news_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', news_id = $news_id, topic_type = $topic_type " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
if ($mode == 'newtopic')
{
$topic_id = $db->sql_nextid();
}
}Hm könntet ihr mir bitte bitte helfen?Error in posting
DEBUG MODE
SQL Error : 1136 Column count doesn't match value count at row 1
INSERT INTO phpbb_topics (topic_title, topic_poster, topic_time, forum_id, news_id, topic_type, topic_vote) VALUES ('test', 2, 1113734845, 2, 0, 0, 0, 0)
Line : 386
File : functions_post.php
