Pagina 1 van 1

Groot probleem

Geplaatst: 12 jan 2007, 21:38
door SpuCci
Ik heb de mod multiple poll geinstalleerd en nu als ik iets wil posten krijg ik een error:

Code: Selecteer alles

Parse error: syntax error, unexpected T_STRING in /home/mikede/domains/mike-creater.nl/public_html/forum/includes/functions_post.php on line 326
De line die fout is zou deze moeten zijn:

Code: Selecteer alles

		$sql = (!$post_data['has_poll']) ? "INSERT INTO " . VOTE_DESC_TABLE . " (topic_id, vote_text, vote_start, vote_length, vote_max, vote_hide, vote_undo) VALUES ($topic_id, '$poll_title', $current_time, " . ($poll_length * 86400) . ", '$max_vote', '$hide_vote', '$undo_vote')" : "UPDATE " . VOTE_DESC_TABLE . " SET vote_text = '$poll_title', vote_length = " . ($poll_length * 86400) . ", vote_max = '$max_vote', vote_hide = '$hide_vote', vote_undo = '$undo_vote' " WHERE topic_id = $topic_id";
ziet iemand de fout ??? plx help

Geplaatst: 12 jan 2007, 21:42
door Bee
Probeer dit eens:

Code: Selecteer alles

$sql = (!$post_data['has_poll']) ? "INSERT INTO " . VOTE_DESC_TABLE . " (topic_id, vote_text, vote_start, vote_length, vote_max, vote_hide, vote_undo) VALUES ($topic_id, '$poll_title', $current_time, " . ($poll_length * 86400) . ", '$max_vote', '$hide_vote', '$undo_vote')" : "UPDATE " . VOTE_DESC_TABLE . " SET vote_text = '$poll_title', vote_length = " . ($poll_length * 86400) . ", vote_max = '$max_vote', vote_hide = '$hide_vote', vote_undo = '$undo_vote'  WHERE topic_id = $topic_id";

Geplaatst: 12 jan 2007, 21:51
door SpuCci
Ja ,bedankt het werkt
Wohoooh