|
|
';
$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]);
?>
Das Turnier am |
|
|
';
$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 '
';
?>