ok
Direktori : /home2/selectio/public_html/wedding-info/api/ |
Current File : /home2/selectio/public_html/wedding-info/api/matching_delete.php |
<?php include_once('config/config.php'); include_once('config/custom-functions.php'); include 'config/send-sms.php'; $return_arr = array(); try { $ids = $_GET['ids']; $statement = $pdo->prepare("DELETE FROM `tbl_rasi_star_matching` WHERE id=".$ids); $result = $statement->execute(); if ($result) { $return_arr['message'] = 'Deleted successfully.'; $return_arr['status'] = 200; } else { $return_arr['message'] = 'Something went wrong.'; $return_arr['status'] = 400; } } catch (Exception $e) { $return_arr['message'] = $e->getMessage(); $return_arr['status'] = 500; } echo json_encode($return_arr); ?>