'; $turnier_date = date('d.m.Y'); $turnier_info = mysql_query('SELECT win, char1, char2, id, round, dauer FROM turnier_kampf WHERE art=\''.$art.'\' ORDER BY id ASC'); $u=0; $pl = 300; while($row=mysql_Fetch_array($turnier_info)) { $char_info1 = getChar($row['char1']); $char_info2 = getChar($row['char2']); $dauer[] = $row['dauer']; if(($pl * $u) + $dauer[0] < time()) { $char_nic1[]='
'.$char_info1['name']; $char_nic2[]='
'.$char_info2['name']; } else { $char_nic1[]='
???'; $char_nic2[]='
???'; } $char_nick1[]=$char_info1['name']; $char_nick2[]=$char_info2['name']; $char1[]=$row['char1']; $char2[]=$row['char2']; $win[]=$row['win']; $id[]=$row['id']; $round[]=$row['round']; $u++; } $maxs = $max_turnier-1; $win_char = getChar($win[$maxs]); ?> '; $new_max_turnier = $max_turnier-1; displaySomething($id, $new_max_turnier, $art, $char_nic1, $char_nic2, 4); echo ''; $new_max_turnier = $max_turnier-3; displaySomething($id, $new_max_turnier, $art, $char_nic1, $char_nic2, 2); $new_max_turnier = $max_turnier-2; displaySomething($id, $new_max_turnier, $art, $char_nic1, $char_nic2, 2); echo ''; $new_max_turnier = $max_turnier-7; displaySomething($id, $new_max_turnier, $art, $char_nic1, $char_nic2); $new_max_turnier = $max_turnier-6; displaySomething($id, $new_max_turnier, $art, $char_nic1, $char_nic2); $new_max_turnier = $max_turnier-5; displaySomething($id, $new_max_turnier, $art, $char_nic1, $char_nic2); $new_max_turnier = $max_turnier-4; displaySomething($id, $new_max_turnier, $art, $char_nic1, $char_nic2); echo ''; ?>
Das Turnier am

'; } ?>
Vorrunde
'; if(($x * 300) + $dauer[0] < time()) { if($char1[$z] == $win[$z]) { echo ''.$char_nick1[$z].' vs. '.$char_nick2[$z].' -> Runde: '.$round[$z].''; } else { echo ''.$char_nick1[$z].' vs. '.$char_nick2[$z].' -> Runde: '.$round[$z].''; } } else { if($k8 == 0) { echo $char_nick1[$z].' vs. '.$char_nick2[$z].' -> Runde: '.$round[$z]; $k8++; } } $z++; $x++; echo '