session_start(); include_once("../../../../mysql_connect.php"); include_once('stoly_config.php'); function wiek($t) {$t = explode("-",$t); $y = (int) $t[0]; $m = (int) $t[1]; $d = (int) $t[2]; $wiek = date(Y) - $y; if ((date(m) < $m) || (date(m) == $m && date(d) < $d)) { $wiek--; } if ($wiek > 120) $wiek = '?'; return $wiek; } $pobierajz=2; //1-dane z entry form, 2-dane z dg_zawodnicy $turniej = 'men'; $rok = '2017'; $id_tx = $id_t1; switch($pobierajz) { case 1: $table_name = "`ibsf`.`entryform`"; //$table_name = "`ibsf`.`entryform`"; $sql = "SELECT * FROM $table_name WHERE `turniej` = \"$turniej\" and `rok` = \"$rok\" ORDER BY `kraj`"; $result = @mysql_query($sql,$dbc)or die("Wykonanie zapytania nie powiodlo sie."); break; case 2: $table_name = "dg_zawodnicy"; $sql = "SELECT * FROM $table_name WHERE `id_t` = \"$id_tx\" ORDER BY `id`"; $result = @mysql_query($sql,$dbc)or die("Wykonanie zapytania nie powiodlo sie."); break; } $lista = "
ICELAND SNOOKER FEDERATION NORDIC CHAMPIONSHIP Men player List | ||||||
echo "$lista"; ?> |
© ICELAND 2017-2024 All rights reserved. Created by :