날짜 더하기는 어케 하나요? 힘드네요..ㅠ > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

날짜 더하기는 어케 하나요? 힘드네요..ㅠ 정보

날짜 더하기는 어케 하나요? 힘드네요..ㅠ

본문

게시판 bo_6에 더할 일수를 미리 넣어놓았습니다. 30일이죠..

그리고 아래 쿼리처럼 해서 함수로 뽑아내어 히든값으로 write할려구하는데요..ㅠㅠㅠ

$today=date("y-m-d", $g4[server_time]);
$certify=sql_fetch("select bo_6 from $g4[board_table] where bo_table='certify'");
$expire=$certify[bo_6];

설정유효기간 30을 그냥 숫자로 30을 더하면 안되드라구요...
$expire_day =  $today + $expire;

그래서 날짜함수를 사용해야지 30일이 지난 날짜를 명기할 것 같아서말이죠..
날짜함수문법을 몰라서요.. 이리저리..
$expire_day = $today + date("y-m-d", $expire);
//$expire_day = date("y-m-d",strtotime($today + $expire));

근데 안되네요..ㅠㅠㅠ

$expire_day 에 30일이 지난 날짜를 어케 담아야 하나요? 좀 도와주세용...
  • 복사

( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '272066' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )

1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

error file : /15sir/bbs/board.php