게시판 답변 글쓸때요
본문
게시판 답변 글 쓸때 원본 글 하고 답글 쿼리 조회 하고싶은데요
좀 알수있을까요?
원본 글이랑 답변글 둘다 디비에 여분필드 wr_1 에 완료라는 데이터를 넣으려고한데요
답변 1
wr_parent 와 wr_id 가 같고 wr_is_comment = 0 이면 원본글이구요.
where wr_parent='{$write['wr_parent']}' and wr_is_comment = 0
이 wr_parent 가 같고 wr_is_comment = 1 이면 답변글입니다.
where wr_parent='{$write['wr_parent']}' and wr_is_comment = 1
답변을 작성하시기 전에 로그인 해주세요.