public function __construct() { $this->db = Database::GetIns(); $this->table = $this->table . '_' . date('Y_m'); $sql = "Select `id` as `stationid`,`acfile` as `name`,`ap`,`acip`,`is_alone` From `rha_station`"; $this->stations = $this->db->FetAll($sql); // $this->stations = array(7,8,9,10,11,12,13,14,15); foreach ($this->stations as $v) { if ($v == 16) { continue; } //$this->execsql('2015-08-01','2015-08-14',$v['stationid']); $this->ExcuteAll($v['stationid']); } }