0) {$where .= " OR `id_t` = ".$id_t2;} if ($id_t3>0) {$where .= " OR `id_t` = ".$id_t3;} $sql = "SELECT * FROM $table_name WHERE ".$where." ORDER by `dzien`, `sesja`, `stol`"; $result = @mysql_query($sql,$dbc)or die("Wykonanie zapytania nie powiodło się."); $jest = mysql_numrows($result); $display_block=" No Player A Player B Referee "; $x=1; while ($wiersz = mysql_fetch_array($result)) { if ($wiersz['iframe']=='') goto nastepne; if ($wiersz['id_s']>0) { $s1 = $wiersz['sedzia']; $s2 = $wiersz['kraj_s']; $s3 = $wiersz['id_s']; $color1 = '#E3E284'; $color2 = '#ffffff'; $color3 = '#E1E9DB'; } else { $s1='';$s2='';$s3=''; $a = $wiersz['dzien'].'_'.$wiersz['sesja']; for ($i = 1; $i <= $ilu_s; $i++) { if ($sedziowie[$a][$i]==$wiersz['stol']) { $s1 = $sedziowie['sedzia'][$i]; $s2 = $sedziowie['kraj_s'][$i]; $s3 = $sedziowie['id_s'][$i]; $color1 = 'red'; $color2 = 'red'; $color3 = 'red'; $cb_check = 'checked'; break; } } } if ($x==$jest){ $kolejny=1; } else { $kolejny=$x+1; } if ($x % 2 == 0) {$bg='w4';} else {$bg='w3';} $display_block.=" ".$x." "; $display_block.=" "; if ($wiersz['id_z1']>0) {$id_list_z .= " `id` LIKE '".$wiersz['id_z1']."' OR";} if ($wiersz['id_z2']>0) {$id_list_z .= " `id` LIKE '".$wiersz['id_z2']."' OR";} if ($wiersz['id_s']>0) {$id_list_s .= " `id` LIKE '".$wiersz['id_s']."' OR";} $x++; nastepne: } //Koniec while ?> All recorded matches

Click on camera to watch recorded match