리스트에 코멘트 내용도 출력해 보자..
<? //코맨트 출력
if($list[$i][commentcnt]){
$Usenum = str_replace('(','',$list[$i][commentcnt]);
$Usenum = str_replace(')','',$Usenum);
for ($j=1; $j<=$Usenum; $j++) {
$rowc= sql_fetch("select wr_content from $write_table where wr_parent_id = '{$list[$i][wr_id]}' and wr_comment = '$j'");
echo "$rowc[0]";
}}
?>
수정해야 할부분 있다면 꼬리말 남겨주세요..^_^;;;
if($list[$i][commentcnt]){
$Usenum = str_replace('(','',$list[$i][commentcnt]);
$Usenum = str_replace(')','',$Usenum);
for ($j=1; $j<=$Usenum; $j++) {
$rowc= sql_fetch("select wr_content from $write_table where wr_parent_id = '{$list[$i][wr_id]}' and wr_comment = '$j'");
echo "$rowc[0]";
}}
?>
수정해야 할부분 있다면 꼬리말 남겨주세요..^_^;;;
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 12개
반란군들이 결성하여 시위를 하네요
관리자님에게 눈물이 ㅠ.ㅠ
각성하라~~~~ G4는 응답하라~~ (따라쟁이)
g4는 얼른 대답하라! 대답하라!
각성하라!!
if($list[$i][commentcnt]){ //코멘트 출력
$content = sql_fetch("SELECT wr_content FROM $write_table WHERE wr_parent_id = '{$list[$i][wr_id]}' and wr_comment !='0'");
for ($j=0; $j<=$list[$i][commentcnt]; $j++) echo $content[$j] . "<p> \n";
}
얼마전에 작업한 게시판 날짜형식 변경관련 된것도 bbs/gblist.php, bbs/gbview.php 이런곳에서 날짜를 짤라서 넘기는 바람에 skin 쪽에서 맘대로 가공하지 못하는 문제가 있었는데.ㅋㅋ
사용자가 좀 혼란스러울수도 있지만 확장성을 위해서 이런것은 스킨에서 모두 제어할수있게되면 좋겠군요(코멘트 숫자 앞뒤의 () 들어가있는것 같은것)
g4에서는 수정되ㅤㅁㅓㅆ으면 좋겠다는.ㅋㅋㅋ