Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
nongapp.eemo.co.kr
/
public_html
/
www
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/nongapp.eemo.co.kr/public_html/www/parts_set_mody_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) { ${$key}=mysql_real_escape_string(trim($value)); } $arr_rst=array(); $query="update farm_parts set rounds='$rounds', jong_type='$jong_type' where no='$no' "; mysql_query($query) or die(mysql_error()); mysql_query("delete from farm_parts_dong where parts_no='$no' ") or die(); $exp=explode(",",$arr_dong); foreach($exp as $ak => $av) { $query="insert into farm_parts_dong set farm_no='{$_COOKIE[ufarm_no]}', parts_no='$no', dong_no='$av', regdate=now() "; mysql_query($query) or die(mysql_error()); } $arr_rst['rst']='1'; echo json_encode($arr_rst); ?>