You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
591 B
19 lines
591 B
<?php
|
|
ob_start();
|
|
include "header.php";
|
|
|
|
$id = isset($_GET['id']) ? $_GET['id'] : die('ERROR: Record ID not found.');
|
|
|
|
$sql = "select accountid from account where id = '$id'";
|
|
$res = mysqli_query($link, $sql);
|
|
if ($row = mysqli_fetch_assoc($res)) {
|
|
$db_query = "delete from account where id = '$id'";
|
|
mysqli_query($link, $db_query);
|
|
|
|
$db_query = "delete from account_auth where accountid = '".$row["accountid"]."'";
|
|
mysqli_query($link, $db_query);
|
|
}
|
|
mysqli_free_result($res);
|
|
header("Refresh:0; url=account-index.php?function_name=account&".$token_link);
|
|
ob_end_flush();
|
|
?>
|