Hallo,
schau dir noch mal die Änderungen in Zeile 769 an, da müßte ein Fehler vorliegen. "
Column count doesn't match value count" besagt nichts anderes als dass die Anzahl der zu übergebenden Werte (Values) nicht mit der Anzahl der angegebenen Tabellenspalten/Felder übereinstimmt und das sieht man auch wenn man deinen besagten Programmcode von Zeile 769 anschaut:
Code: Alles auswählen
"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_password')"
topic_title ->
$post_subject
topic_poster ->
$userdata['user_id']
topic_time ->
$current_time
forum_id ->
$forum_id
topic_status ->
TOPIC_UNLOCKED
topic_type ->
$topic_type
topic_vote ->
$topic_vote
??? ->
$topic_password
Du hast
8 Werte, gibst dafür aber nur
7 (Ziel-)Felder an. Ergo: "Column count doesn't match value count"
Gruß,
Chris