퍼스트가든에서 사용하는 사용자 함수 및 관련파일 추가
This commit is contained in:
18
manager/adm/gr.signup.php
Normal file
18
manager/adm/gr.signup.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?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);
|
||||
Reference in New Issue
Block a user