到目前为止,这是我的代码...
if (isset($_POST['projectName']))
{
$projectName = $_POST['projectName'];
$dueDate = $_POST['dueDate'];
$description = $_POST['description'];
$requestor = $_POST['requestor'];
$status = $_POST['status'];
//Update into the DB
$updateSQL = mysql_query("INSERT INTO projects
(projectName,
dueDate,
description,
requestor,
status
)
VALUES
('".$projectName."','
".$dueDate."','
".$description."','
".$requestor."','
".$status."')");
/*
header('Location:manage.php?update=insertSuccess');
exit();
*/
}
除了 $status 之外,每个值都已成功插入数据库。我在这里错过了什么吗?