'".$day_st."'";
if($day_end) $where .= " and trade_date <'".$day_end."'";
$date_range = "and trade_date";
$sql= <<query($sql);
$tDate=array('交易日');
$idx=array('上证指数');
if($result && $result->num_rows>0) {
#$data = $result->fetch_all();
while($row=$result->fetch_assoc()){
array_push($tDate,$row['trade_date']);
array_push($idx,$row['close']);
}
}
#Free result and close connection.
$result->free();
$mysqli->close();
?>