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_contract_dong_susu_info.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 != 'farm_contract_dong') { ${$key}=mysql_real_escape_string(trim($value)); } } $arr_rst=array(); $exp=explode(",",$arr_dong_no); $arr_dong=array(); $tt=0; foreach($exp as $ak => $av) { $rs=RS("select * from farm_dong_info where no='$av' "); $arr_dong[]=$rs[dong_name]; $tt+=$rs[max_chick_limit]; } $str=implode(",",$arr_dong); $arr_rst['rst']='1'; $arr_rst['susu']=number_format($tt); $arr_rst['arr_no']=$arr_dong_no; $arr_rst['dong_names']=urlencode($str); echo urldecode(json_encode($arr_rst)); ?>