[php] include("config.php"); [/php]
Motstander Info
Motstanders Tag:


Motstanders Navn:


Mostanders Hjemmeside:


Motstanders Land:


Match Info

Match Rounds


Resultat
Map TeamSvett Total Score Motstander Total Score

[php] print(""); [/php] [php] print(""); [/php]


TeamSvett Spillere:
#1
#2
#3
#4
#5

Kommentar til kampen:


[php] if(isset($_POST['leggtil'])) { // Generel Info $tag = $_POST['tag']; $navn = $_POST['navn']; $moturl = $_POST['moturl']; $land = $_POST['land']; $dato = date(d.".".m.".".y); // Match Info $mr = $_POST['mr']; $map = $_POST['map']; $tsscore = $_POST['tsscore']; $motscore = $_POST['motscore']; // Spillere $spiller1 = $_POST['spiller1']; $spiller2 = $_POST['spiller2']; $spiller3 = $_POST['spiller3']; $spiller4 = $_POST['spiller4']; $spiller5 = $_POST['spiller5']; $kommentar = $_POST['kommentar']; $kommentar = nl2br($kommentar); if($tag == NULL || $navn == NULL || $land == NULL || $map == nomap || $tsscore == NULL || $motscore == NULL) { echo "Obligatoriske felter mangler"; } else { if(!is_numeric($tsscore) OR !is_numeric($motscore)) { echo "Score kan kun inneholde tall!"; } else { mysql_query("INSERT INTO tsmatch (tag, navn, land, dato, mr, map, tsscore, motscore, spiller1, spiller2, spiller3, spiller4, spiller5, kommentar, moturl) VALUES('$tag', '$navn', '$land', '$dato', '$mr', '$map', '$tsscore', '$motscore', '$spiller1', ',$spiller2', ',$spiller3', ',$spiller4', ',$spiller5', '$kommentar', '$moturl')") or die(mysql_error()); echo "Match mot $tag er registret i databasen!"; } } } [/php]