Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
nonga.eemo.co.kr
/
public_html
/
www
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/nonga.eemo.co.kr/public_html/www/farm_upmu_feed_ipgo_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(); $vv2=str_replace("-","",$farm_code); $rs_parts=RS("select * from farm_contract_parts where no='$parts_no' "); $rs_contract=RS("select * from farm_contract where no='{$rs_parts[contract_no]}' "); $rs=RS("select * from farm_feed_input_log where no='$vv_no' "); if($rs[is_reject]==1) { $query="update farm_feed_input_log set jdate='$jdate', car_num='$car_num', ip_su='$ip_su', feed_jong='$feed_jong', feed_product_no='$feed_jong', is_reject='0', is_mody_date=now() where no='$vv_no' "; } else { $query="update farm_feed_input_log set jdate='$jdate', car_num='$car_num', ip_su='$ip_su', feed_jong='$feed_jong', feed_product_no='$feed_jong', is_mody_date=now() where no='$vv_no' "; } mysql_query($query) or die(mysql_error()); $arr_rst['rst']='1'; echo json_encode($arr_rst); ?>