리스트에서 코멘트쓰기 정보
리스트에서 코멘트쓰기본문
아래처럼 본문내용과 코멘트쓰기를 스킨 list.skin.php 에불러왔는데요
코멘트쓰기 폼은 보여지는데..작성을하면 저장이되지 않네요
방법이없을까요?
<!-- //--------------------------본문 내용 보기 --------------------------// -->
<div id="view_<?=$list[$i][num]?>">
<table cellpadding=0 cellspacing=0 width=100% style='margin:30px; border:0px solid #ccc; background-color:;'>
<tr>
<td style='border-bottom:0px solid #ffffff; padding:2px;'>
<img src='../img/icon_tag.gif' border=0 align=absmiddle><FONT face='Arial Black' color='#333333' size=14><?=trim($list[$i][content])?></font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!-- 코멘트불러오기 #e8e8ea-->
<tr bgcolor="#ffffff">
<td style=" padding: 10px 0 10px 0" >
<? if (!$member[mb_id] || $member[mb_level] >= $board[bo_write_level] ||($is_admin && $w == 'u' && $member[mb_id] != $write[mb_id]))
include_once("./view_comment.php");
?>
</td>
</tr>
</table>
<!-- 끝 -->
코멘트쓰기 폼은 보여지는데..작성을하면 저장이되지 않네요
방법이없을까요?
<!-- //--------------------------본문 내용 보기 --------------------------// -->
<div id="view_<?=$list[$i][num]?>">
<table cellpadding=0 cellspacing=0 width=100% style='margin:30px; border:0px solid #ccc; background-color:;'>
<tr>
<td style='border-bottom:0px solid #ffffff; padding:2px;'>
<img src='../img/icon_tag.gif' border=0 align=absmiddle><FONT face='Arial Black' color='#333333' size=14><?=trim($list[$i][content])?></font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!-- 코멘트불러오기 #e8e8ea-->
<tr bgcolor="#ffffff">
<td style=" padding: 10px 0 10px 0" >
<? if (!$member[mb_id] || $member[mb_level] >= $board[bo_write_level] ||($is_admin && $w == 'u' && $member[mb_id] != $write[mb_id]))
include_once("./view_comment.php");
?>
</td>
</tr>
</table>
<!-- 끝 -->
댓글 전체

코멘트 작성은 wr_id 값이 있어야 하지 않나요??
어떤 글에 대한 코멘트를 작성하는 건데..
wr_id 값이 지정되어 있지 않다면 등록이 당연히 안될듯
리스트에서 글내용/코멘트를 모두 보여주고 코멘트 작성하는게 목적이라면...
include_once("./view_comment.php");
요기 앞에다가 $wr_id = $list[$i][wr_id];
이거 한줄 추가하면 될지도 모르겠네요..
어떤 글에 대한 코멘트를 작성하는 건데..
wr_id 값이 지정되어 있지 않다면 등록이 당연히 안될듯
리스트에서 글내용/코멘트를 모두 보여주고 코멘트 작성하는게 목적이라면...
include_once("./view_comment.php");
요기 앞에다가 $wr_id = $list[$i][wr_id];
이거 한줄 추가하면 될지도 모르겠네요..
안됩니당~~ 방법이없을까 하구요

코멘트 쓰기 폼은 보여진다고 하셨는데요..
그러면 그 코멘트 쓰기 폼 부근에 클릭한번 하시고
소스보기 하셔서 나오는 소스 한번 올려주세요
<form name="fviewcomment" ~~~~~~~
~~~~~~~~~~~
<input type=hidden name=is_good value=''>
요 부분만 올려주심 되요
그러면 그 코멘트 쓰기 폼 부근에 클릭한번 하시고
소스보기 하셔서 나오는 소스 한번 올려주세요
<form name="fviewcomment" ~~~~~~~
~~~~~~~~~~~
<input type=hidden name=is_good value=''>
요 부분만 올려주심 되요
소스보기해서 나온 소스입니다.
<!-- 코멘트 리스트 -->
<div id="commentContents">
</div>
<!-- 코멘트 리스트 -->
<!-- 코멘트 입력 -->
<div id=comment_write style="display:none;">
<table width=100% border=0 cellpadding=1 cellspacing=0 bgcolor="#dddddd"><tr><td>
<form name="fviewcomment" method="post" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" autocomplete="off" style="margin:0px;">
<input type=hidden name=w id=w value='c'>
<input type=hidden name=bo_table value='quiz'>
<input type=hidden name=wr_id value=''>
<input type=hidden name=comment_id id='comment_id' value=''>
<input type=hidden name=sca value='' >
<input type=hidden name=sfl value='' >
<input type=hidden name=stx value=''>
<input type=hidden name=spt value=''>
<input type=hidden name=page value='1'>
<input type=hidden name=cwin value=''>
<input type=hidden name=is_good value=''>
<!-- 코멘트 리스트 -->
<div id="commentContents">
</div>
<!-- 코멘트 리스트 -->
<!-- 코멘트 입력 -->
<div id=comment_write style="display:none;">
<table width=100% border=0 cellpadding=1 cellspacing=0 bgcolor="#dddddd"><tr><td>
<form name="fviewcomment" method="post" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" autocomplete="off" style="margin:0px;">
<input type=hidden name=w id=w value='c'>
<input type=hidden name=bo_table value='quiz'>
<input type=hidden name=wr_id value=''>
<input type=hidden name=comment_id id='comment_id' value=''>
<input type=hidden name=sca value='' >
<input type=hidden name=sfl value='' >
<input type=hidden name=stx value=''>
<input type=hidden name=spt value=''>
<input type=hidden name=page value='1'>
<input type=hidden name=cwin value=''>
<input type=hidden name=is_good value=''>

<input type=hidden name=wr_id value=''>
wr_id 값이 없네요..
코멘트 작성에서 wr_id 값 없으면 실패~
wr_id 값이 없네요..
코멘트 작성에서 wr_id 값 없으면 실패~