File "set-controller.php"
Full Path: /home/quiczmwg/lightspringdigitals.com/__MACOSX/admin/set-controller.php
File size: 420 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
include_once ("../_db.php");
@session_start();
if(isset($_GET['id'])){
$userid = $_GET['id'];
if($_GET['status']=='delete'){
//delete user account
$sql = $conn->query("DELETE FROM dsettings WHERE userid='$userid' ");
if($sql){
$_SESSION['mgs'] = "Account deleted successfully!";
}
}
header("Location: manage-settings.php");}
?>