From f561ef52ed5b4c28f19dc939aeb332af1d524094 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:33 +0900 Subject: [PATCH] Delete abi directory --- abi/addabi.php | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 abi/addabi.php diff --git a/abi/addabi.php b/abi/addabi.php deleted file mode 100644 index 074c090..0000000 --- a/abi/addabi.php +++ /dev/null @@ -1,40 +0,0 @@ -beginTransaction(); - - $stmt = $pdo->prepare("UPDATE ueuse SET abi = :abi, abidate = :abidate WHERE uniqid = :uniqid"); - $stmt->bindValue(':abi', $abitext, PDO::PARAM_STR); - $stmt->bindValue(':abidate', $abidate, PDO::PARAM_STR); - $stmt->bindValue(':uniqid', $postUniqid, PDO::PARAM_STR); - - // SQLクエリの実行 - $res = $stmt->execute(); - - // コミット - $pdo->commit(); - - if ($res) { - header('Content-Type: application/json'); - echo json_encode(['success' => true]); - exit; - } else { - header('Content-Type: application/json'); - echo json_encode(['success' => false, 'error' => '追加に失敗しました。']); - exit; - } - } catch(PDOException $e) { - header('Content-Type: application/json'); - echo json_encode(['success' => false, 'error' => 'データベースエラー:' . $e->getMessage()]); - exit; - } -} -?>