[php] include("config.php"); if (!$_GET[matchid]) { echo "
Dato Motstander

Land

Resultat

Detaljer

"; $getmatch = mysql_query("SELECT * from tsmatch order by id DESC"); while ($match = mysql_fetch_array($getmatch)) { // Lister alle matchene echo "
$match[dato] $match[tag] $match[navn]

$match[land]

"; if($match[tsscore] > $match[motscore]) { echo "$match[tsscore] : $match[motscore]"; } else { echo "$match[tsscore] : $match[motscore]"; } echo "

"; } } else { $getmatch = mysql_query("SELECT * from tsmatch where id = '$_GET[matchid]'"); $matchnum = mysql_num_rows($getmatch); if ($matchnum == 0) { echo ("Finner ikke match!"); } else { $match = mysql_fetch_array($getmatch); echo "

$match[tag] $match[navn]

Dato: $match[dato]
TeamSvett: TeamSvett
Motstander: $match[tag] $match[navn] -- [Hjemmeside]
Max Rounds: $match[mr]
Map: $match[map]
Resultat:
"; if($match[tsscore] > $match[motscore]) { echo "#Team.Svett $match[tsscore] : $match[motscore] $match[navn]"; } else { echo "#Team.Svett $match[tsscore] : $match[motscore] $match[navn]"; } echo "
#Team.Svett | : $match[spiller1] $match[spiller2] $match[spiller3] $match[spiller4] $match[spiller5]

Raport

$match[kommentar]

"; } } [/php]