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/claim_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) { if($key == 'dong_name') { } else { ${$key}=mysql_real_escape_string(trim($value)); } } $arr_rst=array(); if($dong_name) { $rs_dong=RS("select * from farm_dong_info where farm_no='$farm_no' and dong_name='$dong_name' "); } $arr_dongs=array(); $exp=explode(",",$arr_dong_name); foreach($exp as $av) { $rs_vdong=RS("select * from farm_dong_info where farm_no='$farm_no' and dong_name='$av' "); $arr_dongs[]=$rs_vdong[no]; } $str_dong_no=implode(",",$arr_dongs); $query="update claim_log set prd_type='$prd_type', farm_no='$farm_no', dong_no='{$rs_dong[no]}', arr_dong_no='$str_dong_no', jdate='$jdate', as_date='$as_date', claim_cont='$claim_cont', as_cont='$as_cont', sido='$sido', sigungu='$sigungu', lat='$lat', lon='$lon', bigo='$bigo' where no='$no' "; mysql_query($query) or die(mysql_error()); $arr_rst['rst']='1'; echo json_encode($arr_rst); ?>