18 lines
460 B
PHP
18 lines
460 B
PHP
<?php
|
|
include_once ('./_common.php');
|
|
if(!$_SESSION['user_id']) exit();
|
|
|
|
// 변수 선언
|
|
$gr_name = trim($_POST['gr_name']);
|
|
$gr_date = trim($_POST['gr_date']);
|
|
|
|
// 쿼리 만든다
|
|
$query = "INSERT INTO {$fg['group_table']} (gr_name, gr_date, gr_used, gr_lv)";
|
|
$query .= "VALUES('{$gr_name}', '{$gr_date}', '1', '1') ";
|
|
|
|
|
|
$result = sql_query($query);
|
|
|
|
$data = array("isSuccess" => $result);
|
|
header("Content-Type: application/json");
|
|
echo json_encode($data); |