리스트에서 1번 코멘트 날짜 출력하려고 합니다.. 정보
리스트에서 1번 코멘트 날짜 출력하려고 합니다..본문
리스트상에서 1번 코멘트의 날짜를 출력하는거좀 알려주세요~~~
댓글 전체

$sql = " select * from $write_table where wr_parent = '$list[$i][wr_id]' and wr_is_comment = 1 order by wr_comment, wr_comment_reply ";
$row=sql_fetch($sql);
echo $row[wr_datetime];
$row=sql_fetch($sql);
echo $row[wr_datetime];
이거 해봐도 안되더라구요..
다른 방법이 없을까요?
다른 방법이 없을까요?

어떻게 하신건지 소스 올려 주세요 ^^ 어디에 출력을 해야 하는지도 모르고
쿼리문만 올려 드렸는데 어떻게 적용하셨는지 궁금하네요
쿼리문만 올려 드렸는데 어떻게 적용하셨는지 궁금하네요
<td class="name"><?=$list[$i][wr_datetime]?></td>
<td class="name">
<? if($list[$i][comment_cnt]) { ?>
<b>완료</b>
<br />
<?
$sql = " select * from $g4[write_prefix]$bo_table where wr_parent = '$list[$i][wr_id]' and wr_is_comment = 1 order by wr_comment, wr_comment_reply ";
$row=sql_fetch($sql);
echo $row[wr_datetime];
?>
<? } else { ?>
대기
<? } ?>
</td>
이렇게 사용하려고 하는데 아무리 머리를 싸메고 연구해봐도 안되고 있네요..
<td class="name">
<? if($list[$i][comment_cnt]) { ?>
<b>완료</b>
<br />
<?
$sql = " select * from $g4[write_prefix]$bo_table where wr_parent = '$list[$i][wr_id]' and wr_is_comment = 1 order by wr_comment, wr_comment_reply ";
$row=sql_fetch($sql);
echo $row[wr_datetime];
?>
<? } else { ?>
대기
<? } ?>
</td>
이렇게 사용하려고 하는데 아무리 머리를 싸메고 연구해봐도 안되고 있네요..

죄송합니다.
$sql = " select * from $g4[write_prefix]$bo_table where wr_parent = '{$list[$i][wr_id]}' and wr_is_comment = 1 order by wr_comment, wr_comment_reply ";
중괄호 넣어 주세요~^^
$sql = " select * from $g4[write_prefix]$bo_table where wr_parent = '{$list[$i][wr_id]}' and wr_is_comment = 1 order by wr_comment, wr_comment_reply ";
중괄호 넣어 주세요~^^
아..되네요
어제부터 이거랑 씨름했는데 원인이 {} 였네요..;.
감사합니다..
어제부터 이거랑 씨름했는데 원인이 {} 였네요..;.
감사합니다..