게시판제목에 new아이콘에 comment아이콘도 출력하기
페이지 정보
작성자 규범^-^* 작성일 06-01-19 03:36 조회 2,737 댓글 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=" ";
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
등록된 댓글이 없습니다.