Verfasst: 03.06.2005 11:18
Ne, immer noch dasselbe mit dem Umfragen beantworten...
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
if ( !($row = $db->sql_fetchrow($result2)) )
{
for($i = 0; $i < $max_voting; $i++)
{
$vote_option_id = $vbn[$i];
$sql = "UPDATE " . VOTE_RESULTS_TABLE . "
SET vote_result = vote_result + 1
WHERE vote_id = $vote_id
AND vote_option_id = $vote_option_id";
$vote_option_id = ''
if ( !$db->sql_query($sql, BEGIN_TRANSACTION) )
{
message_die(GENERAL_ERROR, 'Could not update poll result', '', __LINE__, __FILE__, $sql);
}
}
Code: Alles auswählen
for($i = 0; $i < $max_voting; $i++)
{
$vote_option_id = $vbn[$i];
$sql = "UPDATE " . VOTE_RESULTS_TABLE . "
SET vote_result = vote_result + 1
WHERE vote_id = $vote_id
AND vote_option_id = $vote_option_id";
$vote_option_id = ''
if ( !$db->sql_query($sql, BEGIN_TRANSACTION) )
{
message_die(GENERAL_ERROR, 'Could not update poll result', '', __LINE__, __FILE__, $sql);
}
}
}
bekomme immer noch die fehlermeldung, kannst deine flügel ausbreiten,Parse error: parse error, unexpected T_IF in /home/www/web291/html/forum/posting.php on line 865
ALTER TABLE phpbb_vote_desc ADD vote_choice tinyint(1) not null;
INSERT INTO phpbb_config VALUES ('multiple_voting', '0');
Fehler
SQL-Befehl:
ALTER TABLE phpbb_vote_desc ADD vote_choice tinyint( 1 ) NOT NULL
MySQL meldet:
#1060 - Duplicate column name 'vote_choice'
Kann es sein dass ich den SQL-Eintrag in der phpbb_config falsch eingetragen habe, so dass es mir dies nicht auf dem Wert "ja" speichern kann?#
#-----[ OPEN ]----------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ FIND ]----------------------------------------------
#
<tr>
<td class="row1">{L_MAX_POLL_OPTIONS}</td>
<td class="row2"><input class="post" type="text" name="max_poll_options" size="4" maxlength="4" value="{MAX_POLL_OPTIONS}" /></td>
</tr>
#
#-----[ AFTER, ADD ]----------------------------------------------
#
<tr>
<td class="row1">{L_MULTIPLE_VOTING}</td>
<td class="row2"><input type="radio" name="multiple_voting" value="1" {S_VOTE_MULTIPLE} /> {L_YES} <input type="radio" name="multiple_voting" value="0" {S_VOTE_SINGLE} /> {L_NO}</td>
</tr>