Here is the source code and I hope you can tell me what I did wrong.
$db = mysql_connect();
$vtimedate = getdate('Y-m-d H:i:s');
$sqlab = "insert news";
$sqlab .= "(author, title, date, content) ";
$sqlab .= "values('$username', '$title', '$vtimedate', '$content')";
mysql_db_query("tsuniversity", $sqlab);
$num = mysql_affected_rows();
if ($num<1) echo "An error occured - no news posted";
else echo "News posted!";
mysql_close($db);
The MySQL field date is timestamp, datetime, date, etc. (I tried everything).
Same thing with the command "getdate"('Y-m-d H:i:s');" I tried "date()" and "now()" as well.
The problem I have is that the data is simply not inserted.