From 6049da0c88d088186889e215b2503084b777a098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=A0=E3=81=84=E3=81=A1=E3=81=BE=E3=82=8B?= <98202777+Daichimarukana@users.noreply.github.com> Date: Thu, 17 Aug 2023 19:56:53 +0900 Subject: [PATCH] Delete delete directory --- delete/delete.php | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 delete/delete.php diff --git a/delete/delete.php b/delete/delete.php deleted file mode 100644 index 99bb555..0000000 --- a/delete/delete.php +++ /dev/null @@ -1,27 +0,0 @@ -prepare("DELETE FROM ueuse WHERE uniqid = :uniqid"); - $deleteQuery->bindValue(':uniqid', $postUniqid, PDO::PARAM_STR); - $res = $deleteQuery->execute(); - - if ($res) { - echo json_encode(['success' => true]); - exit; - } else { - echo json_encode(['success' => false, 'error' => '削除に失敗しました。']); - exit; - } - } catch(PDOException $e) { - echo json_encode(['success' => false, 'error' => 'データベースエラー:' . $e->getMessage()]); - exit; - } -} -?>