Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
ltman.eemo.co.kr
/
public_html
/
www
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/ltman.eemo.co.kr/public_html/www/farm_org_number_check_profile.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)); } $vv2=str_replace("-","",$farm_org_number); $rs=RS("select * from farm where no != '$farm_no' and REPLACE(farm_org_number,'-','')='$vv2' "); $arr_rst=array(); if($rs[no]) { $arr_rst['rst']=-1; echo json_encode($arr_rst); exit; } else { $arr_rst['rst']=1; echo json_encode($arr_rst); } ?>