Seite 1 von 2
Umfrage Mod
Verfasst: 07.08.2003 16:30
von Micha1980
Hallo hab mal wieder ne Frage.
Hab den Mod installiert um die Umfrageergebnisse bis zum schluss unsichtbar zumachen. Das klappt schon mal.
Nun will ick aber das die Endzeit der Umfrage angezeigt wird da hab ich diesen Fehler...
Error in posting
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near '1, 0 ' at line 1
INSERT INTO phpbb_vote_desc (topic_id, vote_text, vote_start, vote_length, show_endtime, show_results) VALUES (136, 'das ist ein Test', 1060266423, 0), 1, 0
Line : 297
File : /var/www/web980/html/phpBB2/includes/functions_post.php
Was muss ich tun bzw. korigieren?
MfG Micha
Verfasst: 07.08.2003 16:34
von Henne
Musst mal in die functions_post.php in die entsprechenden Zeilen schauen.
Da ist ne Klammer an der falschen Stelle:
INSERT INTO phpbb_vote_desc (topic_id, vote_text, vote_start, vote_length, show_endtime, show_results) VALUES (136, 'das ist ein Test', 1060266423, 0), 1, 0
Verfasst: 07.08.2003 16:38
von Micha1980
doofe frage kannst du mir sagen wo?
$sql = (!$post_data['has_poll']) ? "INSERT INTO " . VOTE_DESC_TABLE . " (topic_id, vote_text, vote_start, vote_length, show_endtime, show_results) VALUES ($topic_id, '$poll_title', $current_time, " . ($poll_length * 86400) . "), $show_endtime, $show_results " : "UPDATE " . VOTE_DESC_TABLE . " SET vote_text = '$poll_title', vote_length = " . ($poll_length * 86400) . ", show_endtime = $show_endtime, show_results = $show_results WHERE topic_id = $topic_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
MfG Micha
Verfasst: 07.08.2003 16:49
von Henne
Code: Alles auswählen
$sql = (!$post_data['has_poll']) ? "INSERT INTO " . VOTE_DESC_TABLE . " (topic_id, vote_text, vote_start, vote_length, show_endtime, show_results) VALUES ($topic_id, '$poll_title', $current_time, " . ($poll_length * 86400) . "), $show_endtime, $show_results " : "UPDATE " . VOTE_DESC_TABLE . " SET vote_text = '$poll_title', vote_length = " . ($poll_length * 86400) . ", show_endtime = $show_endtime, show_results = $show_results WHERE topic_id = $topic_id";
versuch mal mit folgendem zu ersetzen:
Code: Alles auswählen
$sql = (!$post_data['has_poll']) ? "INSERT INTO " . VOTE_DESC_TABLE . " (topic_id, vote_text, vote_start, vote_length, show_endtime, show_results) VALUES ($topic_id, '$poll_title', $current_time, " . ($poll_length * 86400) . ", $show_endtime, $show_results )" : "UPDATE " . VOTE_DESC_TABLE . " SET vote_text = '$poll_title', vote_length = " . ($poll_length * 86400) . ", show_endtime = $show_endtime, show_results = $show_results WHERE topic_id = $topic_id";
Verfasst: 07.08.2003 20:52
von Micha1980
So nun kommt dieser fehler wo muss ich da suchen bzw was muss ich da ändern? Am besten wieder so genau dann klappts ja am besten
Could not obtain vote data for this topic
DEBUG MODE
SQL Error : 1054 Unknown column 'vd.show_endtime' in 'field list'
SELECT vd.vote_id, vd.vote_text, vd.vote_start, vd.vote_length, vd.show_endtime, vd.show_results, vr.vote_option_id, vr.vote_option_text, vr.vote_result FROM phpbb_vote_desc vd, phpbb_vote_results vr WHERE vd.topic_id = 138 AND vr.vote_id = vd.vote_id ORDER BY vr.vote_option_id ASC
Line : 693
File : /var/www/web980/html/phpBB2/viewtopic.php
mfG Micha
Verfasst: 07.08.2003 21:17
von Henne
Hast du in der Datenbank das Feld show_endtime?
Verfasst: 07.08.2003 21:18
von Micha1980
Wie jetzt ?
Wo soll ick das haben? Bin doch nen Anfänger könntest du es möglichst einfach fragen?
MfG Micha

Verfasst: 07.08.2003 21:45
von Henne
Wie administrierst (<- ist das richtig so?) du denn deine Datenbank?
Stellt dein Hoster oder so phpMyAdmin oder so zur Verfügung?
Wenn ja, dann schau mal in der Tabelle phpbb_vote_desc nach, ob nen Feld show_endtime heißt.
Wenn nicht, dann hast du wohl vergessen die table_update_endtime.php auszuführen (oder führ die so aus, wenn du weißt, dass du es nicht gemacht hast).
Verfasst: 07.08.2003 22:07
von Micha1980
Ja mein Hoster stellt mir auch phpAdmin zur Verfügung. Habe es jetzt einfach ausgeführt die table_upate_endtime.php
Fehlermeldung kommt nicht mehr.
Danke
Aber ich bekomm noch dat heulen hier. Resultate werden nicht angezeigt. So soll es sein. Aber es wird auch nicht das Ende der Umfrage angezeigt.
Man bekomm ick das überhaupt noch hin?
Danke dir für deine hilfe Henne23. Dank auch für die Geduld und die vielen doofen fragen

Verfasst: 07.08.2003 22:18
von Henne
Die MOD Voteende anzeigen hast du aber komplett eingebaut?