fix insert
This commit is contained in:
parent
bcc99719f5
commit
f53dfe3798
@ -32,6 +32,8 @@ elseif (!empty($_POST['id'])) {
|
|||||||
}
|
}
|
||||||
// 新增資料
|
// 新增資料
|
||||||
else {
|
else {
|
||||||
|
$title = $_POST['title'];
|
||||||
|
$content = $_POST['content'];
|
||||||
// 修改成功
|
// 修改成功
|
||||||
if ($id = $db->insert($title, $content)) {
|
if ($id = $db->insert($title, $content)) {
|
||||||
header('Location: view.php?id='.$id);
|
header('Location: view.php?id='.$id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user