okay guys, I've got a problem. I always get the following error line:
Parse error: syntax error, unexpected 'mysql_select_db' (T_STRING) in line 10
here's the whole code:
<html>
<head>
<title>test3</title>
</head>
<body>
<?php
$verbindung = mysql_connect("localhost, test3")
or die ("Fehler")
mysql_select_db("test3");
or die ("Verbindung nicht möglich...");
$datum = $_POST["datum"];
$autor = $_POST["autor"];
$newstext = $_POST["newstext"];
if($datum == "" or $autor == "" or $newstext == "") {
echo "FAIL"
} else {
$eintrag = "INSERT INTO test3
(datum, autor, newstext)
VALUES
('$datum', '$autor', '$newstext')";
}
mysql_close($verbindung);
?>
</body>
</html>