first commit
This commit is contained in:
18
backend/ride/notificationCaptain/delete.php
Normal file
18
backend/ride/notificationCaptain/delete.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../../connect.php';
|
||||
|
||||
$notificationID = filterRequest("id");
|
||||
|
||||
$sql = "DELETE FROM `notificationCaptain` WHERE `id` = :id";
|
||||
$stmt = $con->prepare($sql);
|
||||
$stmt->bindParam(':id', $notificationID, PDO::PARAM_INT);
|
||||
$stmt->execute();
|
||||
|
||||
if ($stmt->rowCount() > 0) {
|
||||
jsonSuccess(null, "Notification data deleted successfully");
|
||||
} else {
|
||||
jsonError("Failed to delete notification data");
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user