/
home
/
efamember
/
domains
/
efa-member.com
/
public_html
/
backoffice
/
ajax
/
blog_setting
/
up file
home
<?php include("../../../config/main_function.php"); $secure = "cAh3DrJACzw4RbU"; $connection = connectDB($secure); if ($connection) { $id = mysqli_real_escape_string($connection, $_POST['id']); $sql = "DELETE FROM `tbl_blog` WHERE blog_id = '$id '"; $res = mysqli_query($connection, $sql); if ($res) { $sql = "DELETE FROM `tbl_blog_content` WHERE blog_id = '$id '"; $res = mysqli_query($connection, $sql); if ($res) { $arr['result'] = 1; } } else { $arr['result'] = 0; } } else { $arr['result'] = 9; } echo json_encode($arr);