Infatti ecco la pagina qua sotto.
Mi sono dimenticato di dire la cosa più importante: ogni volta il record viene aggiunto, ma i campi rimangono vuoti.
codice:
<? require "config.php"; ?>
<html>
<head>
<title>Example dot com - Ultimate News</title>
</head>
<body>
<font face="Verdana" size="2">
<?
$link = mysql_connect("$host", "$dbuser", "$dbpass")
or die("Could not connect to database");
echo "Connected successfully adding to database...
";
mysql_select_db("$dbname")
or die("Could not select database");
$query = "INSERT INTO `news` (`newsid`, `title`, `story`, `user`, `date`) VALUES ('', '$title', '$story', '$user', '$date')";
$result = mysql_query($query)
or die("Query failed");
echo "<a href=view.php>Click here to view your news!</a>";
?>
</font>
</body>
</html>
Help!