array('number', $attr['date']), 'index_open_price' => array('number', $attr['open_price']), 'index_close_price' => array('number', $attr['close_price']), 'index_highest_price' => array('number', $attr['highest_price']), 'index_lowest_price' => array('number', $attr['lowest_price']), 'index_increase_value' => array('number', $attr['increase_value']), 'index_increase_price' => array('number', $attr['increase_price']), 'index_amount' => array('number', $attr['amount']), 'index_value' => array('number', $attr['value']), ); return $this->pdo->sqlinsert($this->table_fullname, $param); } public function getIndexList(){ $where="where 1=1"; $sql = "select "."`*`". "from ". $this->table_fullname ." $where order by ".$this->table_id." asc"; $rs = $this->pdo->sqlQuery($sql); $r = array(); if($rs){ foreach($rs as $key => $val){ $r[$key] = $this->dataToAttr($val); } return $r; }else{ return $r; } } } ?>