본문 바로가기

프로젝트/첫번째 jsp eclipes html 을 활용한..19

comment댓글페이지 view.jsp comment insert modifyt update del 댓글작성하는 view페이지 중요 코멘트를 부모로 안하는 이유는 다른게시판걸 모두 가지고있기때문에 조건을 게시판이 부모여야함 부모값을 받아야 자식이 각부모에 뿌려줄수있음 view.jsp에서는 제목 내용등등을 게시판테이블을 DB에서 불러와보여주고 comment관련 form태그와 디자인은 따로 작성후 comment에 insert해줘야한다. 이때 중요한건 게시판의 테이블에서 게시판(부모)의 uid와 code값을 넘겨서 comment table에 저장된 tb_table과 tb_uid에 저장시켜준다 그래야 나중에 comment들을 읽어올때 각 게시판과 각게시글의 uid에 맞춰서 출력가능 comment 고유의 uid는 comment를 삭제 수정할때 쓰인다. 댓글 삭제할때 게시판 DB테이블에 com_count fiel.. 2023. 2. 6.
계층형,답변 게시판 reply.jsp 유형 공지 일반 비밀 일반 비밀 일반 제목 내용 첨부파일 파일찾기 [답변작성] [목록] [새로고침] reply-insert.jsp 2023. 2. 2.
댓글달기 기능 구현 테이블을 따로만든다 하나 input에서 tb_table과 tb_uid 값에 부모값의 code와 uid를 넣어 comment_insert로 보낸다. 그다음 바로 출력도해야되니까 sql구문으로 select해준다. view.jsp에서 ~ 작성 [목록] [답변] [수정] [삭제] comment_insert 2023. 2. 2.
첨부파일꾸미기 html 첨부파일 파일찾기 css .filebox input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip:rect(0,0,0,0); border: 0; } .filebox label { display: inline-block; padding: .5em .75em; color: #999; font-size: inherit; line-height: normal; vertical-align: middle; background-color: #fdfdfd; cursor: pointer; border: 1px solid #ebebeb; border-bottom-col.. 2023. 2. 2.