게시판제목에 new아이콘에 comment아이콘도 출력하기 > Web Development

본문 바로가기
  • kb@lovelet.com
사이트 내 전체검색

RESOURCES Web Development

게시판제목에 new아이콘에 comment아이콘도 출력하기

페이지 정보

본문

function nowjojo($id)
{
$result=mysql_query("select * from zetyx_board_$id order by no desc limit 1");
while($data=mysql_fetch_array($result))
{
$check_time=(time()-$data[reg_date])/60/60;
if($check_time>24)$new="";
if($check_time<=24)$new="&nbsp;";
echo "$new";
}
$result2=mysql_query("select * from zetyx_board_comment_$id order by no desc limit 1");
while($data2=mysql_fetch_array($result2))
{
$check_time=(time()-$data2[reg_date])/60/60;
if($check_time>24)$new2="";
if($check_time<=24)$new2="";
echo "$new2";
}

}

살짝 응용해봤습니다 :)

Share Post:

댓글목록

등록된 댓글이 없습니다.

Sign In
OR
Don't have an account? SIGN UP

Keywords

Visits

접속자

Total Visits
1,893,850