Seite 1 von 1

SQL Error "Hide mit Bedankomat"

Verfasst: 02.07.2007 21:31
von dasill
Hallo hab hier den Hide mod eingebaut & ein Bedankomat!

bei mir kommt eine Fehlermeldung sobald ich eine Datei editieren will!
FEHLER KOMMT NUR BEI DATEN DIE MAN SCHON EINEN HIDE ERSTELT HATT & es später bearbeiten will.
Error in posting

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 ' topic_bedankomat = 'Kat Deluna - Whine Up (Official Johnny Vicious Party Remix)' at line 1

UPDATE phpbb_topics SET topic_title, topic_bedankomat = 'Kat Deluna - Whine Up (Official Johnny Vicious Party Remix)', topic_bedankomat = 1, 1, topic_type = 0 WHERE topic_id = 1518

Line : 239
File : functions_post.php
Hier die functions_post.php datei:
http://board.rnb-live.com/phpBB/functions_post.txt

Verfasst: 03.07.2007 01:33
von uwe310
Hey
ersetz doch mal die Zeile 236

mit dem code

Code: Alles auswählen

$sql  = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_bedankomat, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('$post_subject', $topic_bedankomat, " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject',topic_bedankomat = $topic_bedankomat, topic_type = $topic_type " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id";
MFG
uwe

Verfasst: 03.07.2007 11:48
von dasill
@uwe310 Boooooaaaaahhhh THX einfach nur THX es funktioniert Perfekt kein fehler mehr!!!

Hide& Bedankomat funktionieren zusammen perfekt ;)
Ich bedanke mich nochmals...!!!!!!!!!!!