change var name

This commit is contained in:
wlx 2014-03-04 16:00:08 +00:00
parent 6ffe628c27
commit 3db63caac9
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ ini_set('error_log','/tmp/wsn.log');
if($variable==-1) if($variable==-1)
{ {
//获取数据 //获取数据
$sql2= "SELECT v.fld_time as time,v.fld_value as value,va.fld_name as variablename FROM tbl_value v left join tbl_variable_info va on v.fld_variable_id=va.fld_variable_id WHERE v.fld_site_id=$site AND v.fld_time>='$start' AND v.fld_time<'$endtime' ORDER BY time "; $sql2= "SELECT v.fld_time as time,v.fld_value as value,va.fld_name as variablename FROM tbl_value v left join tbl_variable_info va on v.fld_variable_id=va.fld_variable_id WHERE v.fld_site_id=$site AND v.fld_time>='$start' AND v.fld_time<'$end' ORDER BY time ";
$sth2 = $db->query($sql2); $sth2 = $db->query($sql2);
$rows2 = $sth2->fetchAll(); $rows2 = $sth2->fetchAll();
$endtime=date("Y-m-d",strtotime($start)+24*3600); $endtime=date("Y-m-d",strtotime($start)+24*3600);