fix insert

This commit is contained in:
Yuan Chiu 2020-04-10 00:38:38 +08:00
parent bcc99719f5
commit f53dfe3798

View File

@ -32,6 +32,8 @@ elseif (!empty($_POST['id'])) {
}
// 新增資料
else {
$title = $_POST['title'];
$content = $_POST['content'];
// 修改成功
if ($id = $db->insert($title, $content)) {
header('Location: view.php?id='.$id);