도와주세요. > 그누4 질문답변

그누4 질문답변

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

도와주세요. 정보

도와주세요.

본문

안녕하세요. 일단 구현할려는것은 아래와 같습니다.

$row3[date] 필드에 날짜가 15일이 초과되면 '15일 연체' , 30일이상 초과되면 '30일 연체' 가 나타나게 할려고 합니다.

일단 소스 구상은 아래와 같이해보았습니다.

잠을 안자고 하니..정신이 몽롱..하네요..

$d = $row3[date];
$result = date('Y-m-d', strtotime('+15 days', strtotime($d))); // 15일
$result1 = date('Y-m-d', strtotime('+31 days', strtotime($d))); // 31일

일단 임시로 $k 값으로 테스트 하고 있습니다.

$k = "2013-03-18"; // 15일 ( 3/3 일 기준 )
$k1 = "2013-04-03"; // 30일 ( 3/3 일 기준 )


if($k >= $result){
echo "15일 연체";
}elseif($k1 >= $result1){
echo "30일 연체";
}else{

}

이 다음에 어떻게 하는지 감이 안오네요..

고수님들 도와주십시오 ^^.

( 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 = '256262' 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