13 lines
340 B
PHP
13 lines
340 B
PHP
<?php
|
|
include_once ('./_common.php');
|
|
include_once ()'lib/lib.php');
|
|
if(!$_SESSION['user_id']) exit();
|
|
|
|
$gr_id = trim($_POST['gr_id']);
|
|
|
|
$query = "DELETE FROM {$fg['group_table']} WHERE gr_id='{$gr_id}'";
|
|
$result = sql_query($query);
|
|
|
|
$data = array("isSuccess" => $result);
|
|
header("Content-Type: application/json");
|
|
echo json_encode($data); |