$stoday1=mktime(0,0,0,date(m,$ctime1),date(d,$ctime1),date(y,$ctime1)); $stoday2=mktime(0,0,0,date(m,$ctime2),date(d,$ctime2),date(y,$ctime2)); //统计当日首页被浏览的累积次数 $query='select sum(visits) as tvisits from stream where stime>='; $query.=$stoday1.' and stime<'.$stoday2; $result=mysql_db_query('ajax',$query,$mlink); echo '<span class="st3">浏览首页累积次数:'; if($row=mysql_fetch_object($result)){ echo $row->tvisits; } //统计当日拜访ip的数量 $query='select * from stream where stime>='.$stoday1; $query.=' and stime<'.$stoday2.' order by stime desc'; $result=mysql_db_query('ajax',$query,$mlink);