zrobiłem:
[php:1:111c9eefc3]<body>
<?
$dbhost = 'localhost';
$dbname = 'mateooo';
$dblogin = 'xxx';
$dbhaslo = 'xxx';
$connect = mysql_connect($dbhost, $dblogin, $dbhaslo) or die ("brak polaczenia");
mysql_select_db($dbname, $connect) or die("nie mozna wybrac bazy");
?>
<form action="" method="POST">
<input name="home"></input>
<input name="hgol"></input>
<input name="agol"></input>
<input name="away"></input>
<input type="submit" name="submit"></input>
</form>
<?
if($_POST['submit']){
$sql= "INSERT INTO mecze (id, home, hgol, agol, away) VALUES ('', '".$_POST['home']."', '".$_POST['hgol']."', '".$_POST['agol']."', '".$_POST['away']."')";
mysql_query($sql) or die("nie da rady");
}
?>
<?
mysql_close($connect);
?></body>[/php:1:111c9eefc3]
i nie działa