현재시간 가져오는 법 좀 알려주세요... 정보
현재시간 가져오는 법 좀 알려주세요...본문
if ($wr == "8"){
$sql = " select * from $tmp_write_table where wr_8 > 0 && wr_9 > current_time order by rand() limit 0, $rows ";
wr_9 에 20091218 이런 식으로 입력해서 현재날짜(current_time)와 비교하는데
요렇게 하니까 않되는군요...
$current_time = time();
$current_time = date("Ymd", $current_time);
아는게 없어서 별짓을 다 해봐도 않됩니다... 도와주세요... ㅜ.ㅜ
$sql = " select * from $tmp_write_table where wr_8 > 0 && wr_9 > current_time order by rand() limit 0, $rows ";
wr_9 에 20091218 이런 식으로 입력해서 현재날짜(current_time)와 비교하는데
요렇게 하니까 않되는군요...
$current_time = time();
$current_time = date("Ymd", $current_time);
아는게 없어서 별짓을 다 해봐도 않됩니다... 도와주세요... ㅜ.ㅜ
댓글 전체
wr_9 > current_time
==>
wr_9 > now()
==>
wr_9 > now()
오... 감사합니다...
어제 죙일 굿 한건데 이렇게 간단히... ㅡㅡ;;;
감사합니다. 엑스엠엘님~
어제 죙일 굿 한건데 이렇게 간단히... ㅡㅡ;;;
감사합니다. 엑스엠엘님~