$cur_day1=date("Y-m-d"); $cur_day=date("Y-m-d H:i:s", strtotime("-1 day",strtotime($cur_day1) ) ); $result_comment = sql_query(" select wr_parent from $g4[board_new_table] where bo_table ='$bo_table' and wr_id<>wr_parent and bn_datetime >= '$cur_day' "); $new_comment=array(); while( $tmp = sql_fetch_array($result_comment) ){ array_push($new_comment, $tmp[wr_parent]); }