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
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";