det virker ikke
jeg får en fejlt se her.Parse error: parse error, unexpected $ in /srv/www/htdocs/web1296/html/addmatch.php on line 37
og her kan du se koden..
<html><head><title>saanice add system</title></head><body>
<form action="addmatch.php" method="post">
Type: <input type="text" name="type"><br>
Channel: <input type="text" name="channel"><br>
VS: <input type="text" name="vs"><br>
Maps: <input type="text" name="maps"><br>
Score: <input type="text" name="score"><br>
Ended: <input type="text" name="title"><br>
<input type="Submit">
</form>
</body>
<?
$username="web1296";
$password="fqnpesga";
$database="usr_web1296_1";
$type=$_POST['type'];
$channel=$_POST['channel'];
$vs=$_POST['vs'];
$maps=$_POST['maps'];
$score=$_POST['score'];
$title=$_POST['title'];
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "INSERT INTO test_matches ( `type` , `channel` , `versus` , `maps` , `score` , `title` ) VALUES ( '$type', '$channel', '$vs', '$maps', '$score', '$title' );
mysql_query($query);
mysql_close();
?>
linje 37 er ?>