퍼스트가든에서 사용하는 사용자 함수 및 관련파일 추가

This commit is contained in:
2025-07-02 14:14:02 +09:00
parent 68797db562
commit ec949b682d
265 changed files with 27086 additions and 0 deletions

20
manager/adm/gr.modify.php Normal file
View File

@ -0,0 +1,20 @@
<?php
include_once ('./_common.php');
if(!$_SESSION['user_id']) exit();
// POST로 가져온 값을 변수에 넣어준다.
$gr_id = $_POST['gr_id'];
$gr_used = trim($_POST['gr_used']);
$gr_name = trim($_POST['gr_name']);
$gr_date = trim($_POST['gr_date']);
$gr_lv = trim($_POST['gr_lv']);
// 변수 값을 DB에 업데이트
$where = " WHERE gr_id = '{$gr_id}'";
$query = "UPDATE {$fg['group_table']} SET gr_used = '{$gr_used}', gr_name = '{$gr_name}', gr_date = '{$gr_date}', gr_lv = '{$gr_lv}'".$where;
$result = sql_query($query);
$data = array("isSuccess" => $result);
header("Content-Type: application/json");
echo json_encode($data);