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

본문 바로가기

사이트 내 전체검색

Web Development

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

페이지 정보

작성자 규범^-^* 작성일 06-01-19 03:36 조회 2,732 댓글 0 Zeroboard 4

본문

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";
}

}

살짝 응용해봤습니다 :)

0 Comments

등록된 댓글이 없습니다.

Copyright ⓒ 2003-2024 LOVELET.COM. All rights reserved.
PC 버전으로 보기