使用表單我將一些基本字段添加到表中。從表單發佈時向表添加日期
我也想添加表單中的數據發佈的當前日期。
如何做到這一點的任何建議,將不勝感激。
謝謝。
$sql="INSERT INTO Experiments(Author, Title, Description)
VALUES
('$_POST[author]','$_POST[title]','$_POST[description]')";
if (!mysql_query($sql,$connection))
{
die('Error: ' . mysql_error());
}
header('Location: http://example.com');
請問您能更清楚嗎? – Guy
你的意思是你想添加數據添加到數據庫的日期嗎? – Blazemonger