본인이 코멘트 작성한 글의 리스트페이지에 코멘트 작성이라고 넣고 싶습니다 정보
본인이 코멘트 작성한 글의 리스트페이지에 코멘트 작성이라고 넣고 싶습니다본문
제목 처럼 본인이 코멘트를 작성한 글이 있으면 로그인시 게시판 리스트페이지 게시글의 글쓴이 출력 옆에 코멘트작성 이라는 아이콘을 넣고 코멘트를 작성하지 않은 게시글에는 코멘트 작성안함 이라는 아이콘을 넣고 싶은데 어찌하면 되나요
댓글 전체
http://sir.co.kr/bbs/board.php?bo_table=g3_skin&wr_id=12940
본 스킨을 참조하시기 바랍니다.
단, 상단의 스킨은 gnu3.xx용이라는 것을 유의하시면 됩니다.
본 스킨을 참조하시기 바랍니다.
단, 상단의 스킨은 gnu3.xx용이라는 것을 유의하시면 됩니다.
감사합니다.. 그런데..g4도 파악을 못하는 지라..역시 어렵군요
if ($member[mb_id]) {
$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] = "댓글써라";
}
echo " " . $list[$i][is_ncoment];
}
http://kkk.myhome.tv/ahome/bbs/board.php?bo_table=sub6_2
감사합니다...
확실히 집어 주시니..받아 먹기만 하면 되는 군요...
확실히 집어 주시니..받아 먹기만 하면 되는 군요...
로그인하지 않은 상태에서는 코멘트 있음/ 댓글써라 등이 출력되지 않으니...
빈공간이 생깁니다//
로그인하지 않은 상태에서는 진행중 이라고 출력하고 싶은데..어찌하면 되나요
빈공간이 생깁니다//
로그인하지 않은 상태에서는 진행중 이라고 출력하고 싶은데..어찌하면 되나요
if ($member[mb_id]) {
$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];
$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];
감사합니다...깨끗합니다