sns 식 종료날짜 표기방법 정보
sns 식 종료날짜 표기방법
본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
$timestamp = strtotime($vote[vt_edate]); // 글쓴날짜시간 Unix timestamp 형식
if ($timestamp >= $time_ymdhis + 86400 * 1) {
$str = (int)(($time_ymdhis + $timestamp) / 86400) . "일후";
}else if ($timestamp >= $time_ymdhis + 3600 * 1) {
$str = (int)(($time_ymdhis + $timestamp) / 3600) . "오늘";
}else {
$str = "-";
}
$dateday = $str;
이렇게 해봤는데 16069일후 이렇게 표기되네요
종료날짜가 13.12.31 (화) 00시 까지인경우
남은 기간 31일까지는 "xx일후"
당일인경우는 "오늘"
그외에는 "-"
이렇게 표기되게 하고 싶습니다.
오류 주소 :
$timestamp = strtotime($vote[vt_edate]); // 글쓴날짜시간 Unix timestamp 형식
if ($timestamp >= $time_ymdhis + 86400 * 1) {
$str = (int)(($time_ymdhis + $timestamp) / 86400) . "일후";
}else if ($timestamp >= $time_ymdhis + 3600 * 1) {
$str = (int)(($time_ymdhis + $timestamp) / 3600) . "오늘";
}else {
$str = "-";
}
$dateday = $str;
이렇게 해봤는데 16069일후 이렇게 표기되네요
종료날짜가 13.12.31 (화) 00시 까지인경우
남은 기간 31일까지는 "xx일후"
당일인경우는 "오늘"
그외에는 "-"
이렇게 표기되게 하고 싶습니다.
( 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 = '284303' 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