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/api_get_nodemcu_temper.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)); } $query="insert into tmp_nodemcu set sensor_no='$sensor_no', wifi_no='$wifi_no', temp='$temper', badak_temp='$badak_temp', humi='$humi', gas_no2='$gas_no2', gas_co='$gas_co', gas_nh3='$gas_nh3', giap='$giap', lux='$lux', co2='$co2', voc='$voc', regdate=now() "; mysql_query($query) or die(mysql_error()); $arr_rst=array(); $arr_rst['rst']='1'; $arr_rst['data']='123.1'; echo json_encode($arr_rst); ?>