session_start(); if ($_SESSION['valid'] != "tak") { header("Location: http://provideo.pl/~bulgaria/live/ts_menu.php"); exit; } include('ts_config.php'); $wiersze = file ('en/ts.csv'); $wiersze2 = file ('en/ts_.csv'); include_once("../mysql_connect.php"); $table_name = "zawodnicy"; $kraj = 'Bulgaria'; $sql = "SELECT * FROM $table_name WHERE `kraj` = \"$kraj\" ORDER by `imie`"; $result = @mysql_query($sql,$dbc)or die("Wykonanie zapytania nie powiodło się."); $dane = array(); $x=1; $lista = ""; while ($wiersz = mysql_fetch_array($result)) { $dane['id'][$x] = $wiersz['id']; $player = $wiersz['imie']." ".$wiersz['nazwisko']; $dane['nazwisko'][$x] = $wiersz['nazwisko']; $dane['imie'][$x] = $wiersz['imie']; $lista .= ""; $x++; } ?>