제목 처럼 본인이 코멘트를 작성한 글이 있으면 로그인시 게시판 리스트페이지 게시글의 글쓴이 출력 옆에 코멘트작성 이라는 아이콘을 넣고 코멘트를 작성하지 않은 게시글에는 코멘트 작성안함 이라는 아이콘을 넣고 싶은데 어찌하면 되나요
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 7개
본 스킨을 참조하시기 바랍니다.
단, 상단의 스킨은 gnu3.xx용이라는 것을 유의하시면 됩니다.
$sqlc = " select count(*) as cnt from $write_table where wr_parent = '{$list[$i][wr_id]}' and wr_is_comment = '1' and mb_id = '$member[mb_id]' ";
$rowc = sql_fetch($sqlc);
$total_coment = $rowc[cnt];
if ($total_coment) {
$list[$i][is_ncoment] = "코멘트있음";
} else {
$list[$i][is_ncoment] = "댓글써라";
}
echo " " . $list[$i][is_ncoment];
}
http://kkk.myhome.tv/ahome/bbs/board.php?bo_table=sub6_2
확실히 집어 주시니..받아 먹기만 하면 되는 군요...
빈공간이 생깁니다//
로그인하지 않은 상태에서는 진행중 이라고 출력하고 싶은데..어찌하면 되나요
$sqlc = " select count(*) as cnt from $write_table where wr_parent = '{$list[$i][wr_id]}' and wr_is_comment = '1' and mb_id = '$member[mb_id]' ";
$rowc = sql_fetch($sqlc);
$total_coment = $rowc[cnt];
if ($total_coment) {
$list[$i][is_ncoment] = "코멘트있음";
} else {
$list[$i][is_ncoment] = "댓글써라";
}
}else {
$list[$i][is_ncoment] = "진행중";
}
echo " " . $list[$i][is_ncoment];